Satoshi Goto
Satoshi Goto
@Lexstok Thank you for your question. I also tried but could not reproduce it. I have a few questions to inquiry. 1. There is a "Default Page Order" setting in...
Thanks for the additional information. Your information revealed a bug where default page order settings are not referenced when opening a book file from the library. When opening a file...
@frykauf Thanks for your bug report. It seems Fomalhaut2 has bad association with `.cbz` in your environment. To investigate, can you answer my questions? ### Q1. Which version of Fomalhaut2...
Since v0.8.1, skip dropping files which has unsupported extensions. https://github.com/mtgto/Fomalhaut2/releases/tag/0.8.1
報告ありがとうございます。ちょっと対処が難しそうなのでどうするか考えます。 ### 簡単な調査 macSKKではlibiconvを使ってEUC-JIS-2004からUTF-8に変換を試みますが、SKK-JISYO.JIS3_4には結合文字(合字)が含まれており、libiconvは結合文字をUnicodeに変換するときに失敗しているようです。 ```console ❯ iconv -f EUC-JISX0213 -t UTF-8 ~/Downloads/SKK-JISYO.JIS3_4 >/dev/null iconv: iconv(): Illegal byte sequence ``` たとえば `iconv -f EUC-JISX0213 -t UTF-8 /path/to/SKK-JISYO.JIS3_4` で見ると、2502行目の `a' /á/ά;発音記号/` で途切れています。このあとにも続いているのですがiconvコマンドで変換できなくなったようです。...
ひとまず原因の一つはmacOSに入っているlibiconvが古いことでした。 ためしにHomebrewで `brew install libiconv` したあとでHomebrew版のiconv (GNU iconv 1.17) を使ったら変換はできました。 https://formulae.brew.sh/formula/libiconv ```console ❯ /opt/homebrew/opt/libiconv/bin/iconv -f EUC-JISX0213 -t UTF-8 /path/to/SKK-JISYO.JIS3_4 > SKK-JISYO.JIS3_4.utf8 ❯ /opt/homebrew/opt/libiconv/bin/iconv --version iconv (GNU libiconv 1.17) Copyright (C)...
お手数おかけしますが、ひとまずはUTF-8に変換して使ってみてください。 nkfはさすがに古すぎるので正常に変換できなくてもおかしくないためlibiconvをおすすめします。 libiconvでUTF-8に変換したあとの41行の読み込みエラーのうち、例えばSKK-JISYO.JIS3_4の2493行目にある ^ /̂;(diacritic)/ 、これをmacSKKでは ” /” で分割して、前を読みとして、後ろを変換候補として扱うんですが、Swiftだとこの文字列に ” /” なんてないよ、といわれてしまいますね。 ```console ❯ swift repl Welcome to Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4). Type :help for assistance. 1> "^...
この `^` に見えるのはUnicodeではU+0302。 合成可能なダイアクリティカルマークの1つなので、SwiftのStringでは先行のスラッシュと結合した文字として扱われるようです。 https://ja.wikipedia.org/wiki/%E5%90%88%E6%88%90%E5%8F%AF%E8%83%BD%E3%81%AA%E3%83%80%E3%82%A4%E3%82%A2%E3%82%AF%E3%83%AA%E3%83%86%E3%82%A3%E3%82%AB%E3%83%AB%E3%83%9E%E3%83%BC%E3%82%AF
報告ありがとうございます。なるほど、単語登録中に単語登録はできてもよさそうですね。 いまやっているキーバインド設定が終わったら対応しようと思います。
仕様というわけではなく、入れ子で単語登録できてもいいことに気付いてなかったので実装してなかっただけです🙇 (バグというわけではない、です。仕様バグ…?)