![]() |
#1 |
Member
![]() Posts: 12
Karma: 52
Join Date: Aug 2009
Device: iRex DR1000s
|
Chinese Vertical Layout uds plugin plaintext Release
Dears
Before Install, you must have one Chinese Font file installed. use the wqy_zenhei.ttf. User in Latin is not useful, no effect. Here is the vertical Layout for Chinese, possible for all CJK, too. This plugin is modified from original v1.7. Let user can see Vertical text, It uses the benefit of PANGO and FT. Chinese Vertical layout we must do following things, for Pango Layer a) set the base_Gravity to PANGO_GRAVITY_EAST b) rotate 90 At Font data, I am not sure whether pango can do following things or not, especialy item (a). a) unrotated the Latin half glyphs. b) unrotated the Chinese full vertical scripts. c) hinting some punctuations. others are not considered, for example, time, digital index, combinational Hanzi, bin Source code document-viewer-plugins-1.7-vertical CJK plaintext v0.1.zip Last edited by spuggy; 09-18-2010 at 02:15 PM. Reason: Add 0.2b binary |
![]() |
![]() |
![]() |
#2 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
Perhaps setting proper PangoGravityHint can make Latin glyphs remain their natural gravity.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 12
Karma: 52
Join Date: Aug 2009
Device: iRex DR1000s
|
tried, but failed.
We want that Latin don't rotate, and Chinese need to rotate for this purpose. The problem is, When the pango do right layout position for both Latin and Chinese Glyphs. Freetype Render generates wrong direction bitmap for Latin, it rotate 90, too. It is not clear, Does the Pango active all glyph 90 degree transformation to Freetype wrong, or Does not Freetype backend handle this different setting? Anyway, we can switch this at Freetype layer by IGNORE_TRANSFORMATION flag. Last edited by spuggy; 08-31-2010 at 09:49 AM. |
![]() |
![]() |
![]() |
#4 |
Member
![]() Posts: 12
Karma: 52
Join Date: Aug 2009
Device: iRex DR1000s
|
V 0.2 release
**WARNING** I have modified the Plug-in correct UI, but Latin paper won't be correct, it will upside down. If you don't care, and Love Chinese Vertical layout then try it. 警告:0.2 版將0.1 UI導正,但副作用是 PageFlow的開啟仍以橫排為主,方向上下與直書左右不同;另外英文的紙張方向會倒置。介意的請勿安裝 ! Last edited by spuggy; 09-19-2010 at 12:59 AM. Reason: use 0.2b |
![]() |
![]() |
![]() |
#5 |
Member
![]() Posts: 12
Karma: 52
Join Date: Aug 2009
Device: iRex DR1000s
|
V 0.2b release
This version uses the Rotate ICON to switch the Vertical Layout features.
v0.2b 2010/09/18 For 1.7.1 Version, 2.0RC3 seems not work. 修正前一版不能橫書的困擾,可由Rotate ICON 直接選要橫書/直書。 Vertical Portrait --Rotate--> Horizontal landscape--Rotate--> Horizontal Portrait --Rotate--> Vertical Landscape. Vertical Layout is useful for CJK, not Latin. Before Install, you need to Install Chinese Font. The page flow is wrong for the Vertical Layout. Last edited by spuggy; 09-19-2010 at 02:21 AM. |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
New Plugin Type Idea: Library Plugin | cgranade | Plugins | 3 | 09-15-2010 12:11 PM |
DR1000 DR1000 Chinese Vertical Layout TXT plugin install Problem | spuggy | iRex | 0 | 08-28-2010 02:30 PM |
which command does uds send to toggle fullscreen? | Iñigo | iRex Developer's Corner | 16 | 08-06-2010 09:51 AM |
Supporting vertical layout for certain languages? | ericshliao | EPUBReader | 4 | 06-07-2010 11:32 AM |
Difference between emulator and real device (developing uds plugin for djvu) | luite | iRex | 7 | 03-03-2010 08:55 PM |