View Single Post
Old 11-23-2012, 08:33 AM   #242
yiming
Zealot
yiming is kind to children and small, furry animalsyiming is kind to children and small, furry animalsyiming is kind to children and small, furry animalsyiming is kind to children and small, furry animalsyiming is kind to children and small, furry animalsyiming is kind to children and small, furry animalsyiming is kind to children and small, furry animalsyiming is kind to children and small, furry animalsyiming is kind to children and small, furry animalsyiming is kind to children and small, furry animalsyiming is kind to children and small, furry animals
 
Posts: 127
Karma: 6744
Join Date: Dec 2011
Device: Kindle Touch, PW2, PW5
Quote:
Originally Posted by bhaak View Post
I've looked into this and it appears that's because the Coolreader engine just considers Chinese text as one long word. The same would happen if you used Latin characters without any space in it.

I'll try some time if I can add a proper line breaking to these kind of texts.



The only thing I can think of is that there's a font that lets the program crash with Amazon's own freetype library. Although this would be the first report about a font that let it crash when trying to render text with it.
i'll be most grateful if you can solve the punctuation problem

as in English or other languages, there are certain rules concerning layout. Here are the ones for Chinese text for your reference:

punctuations that should not start a line:
Code:
!),.:;?]}¨·ˇˉ―‖’”…∶、。〃々〉》」』】〕〗!"'),.:;?]`|}~¢
punctuations that should not end a line:
Code:
([{·‘“〈《「『【〔〖(.[{£¥
as for crashing of the program, i think i know the reason. i've copied the improved Caecilia font from Amazon to /mnt/us/fonts and has left the original Caecilia font untouched. i did a ;fc-cache and have no problem using the improved font, but i suppose it caused the hackedupreader to crash when i tried to change the font settings.

Edit: i confirm that the crash was caused by the Caecilia font in /mnt/us/fonts. once i removed it, everything became normal.

Last edited by yiming; 11-23-2012 at 12:39 PM.
yiming is offline   Reply With Quote