foobnix / LibreraReader

Book Reader for Android
http://librera.mobi
Other
2.9k stars 309 forks source link

support chinese Hyphenation language #578

Open httpsgithu opened 4 years ago

httpsgithu commented 4 years ago

if you cannot support chinese for the chapter detection at least make a function like cool reader's algorithmic function https://github.com/gedoor/MyBookshelf this app support good chinese chapter detection for my txt you can copy its code

foobnix commented 4 years ago

I am using this lib for hyphenation https://github.com/mfietz/JHyphenator/blob/master/src/main/java/de/mfietz/jhyphenator/HyphenationPattern.java If you can find China patterns I will update

httpsgithu commented 4 years ago

i think 8.3.19-f-droid support chinese but then it was deleted

httpsgithu commented 4 years ago

https://github.com/gedoor/MyBookshelf/blob/master/app/src/main/assets/txtChapterRule.json it use regexp

httpsgithu commented 4 years ago

i donot know how to turn regexp rules to hashmap

httpsgithu commented 4 years ago

will you support replace rules using regex there are many nsfw books using ** i need to replace them the app i mention first has that function

httpsgithu commented 4 years ago

i donot know why opds is anti-privacy