Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex

Notices

Reply
 
Thread Tools Search this Thread
Old 08-30-2010, 01:40 PM   #1
spuggy
Member
spuggy is on a distinguished road
 
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.
Click image for larger version

Name:	2.jpg
Views:	182
Size:	803.2 KB
ID:	57396
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
spuggy is offline   Reply With Quote
Old 08-30-2010, 05:25 PM   #2
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 973
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
Perhaps setting proper PangoGravityHint can make Latin glyphs remain their natural gravity.
ericshliao is offline   Reply With Quote
 
Enthusiast
Old 08-31-2010, 09:42 AM   #3
spuggy
Member
spuggy is on a distinguished road
 
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.
spuggy is offline   Reply With Quote
Old 09-18-2010, 11:14 AM   #4
spuggy
Member
spuggy is on a distinguished road
 
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
spuggy is offline   Reply With Quote
Old 09-18-2010, 02:00 PM   #5
spuggy
Member
spuggy is on a distinguished road
 
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.
Attached Files
File Type: zip Vertical Chinese Layout V0.2b.zip (221.3 KB, 77 views)

Last edited by spuggy; 09-19-2010 at 02:21 AM.
spuggy is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 05:26 AM.


MobileRead.com is a privately owned, operated and funded community.