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

Go Back   MobileRead Forums > E-Book Formats > PDF

Welcome to the MobileRead Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community today, you will have fewer ads, access to post topics, communicate privately with other members, respond to polls, upload content and access many other special features.

If you have any problems with the registration process or your account login, please contact us.

Hint: Don't have time to visit us daily? Subscribe to our main RSS feed to receive our frontpage posts at your convenience.

Notices

PDF Adobe PDF is commonly used to distribute print content; usually not the ideal format for smaller displays

Reply
 
Thread Tools Search this Thread Display Modes
Old 11-05-2009, 01:18 PM   #1
s3ntient
Junior Member
s3ntient began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2009
Device: PRS-600
Latex, PDF and the PRS-600 Dictionary

Hello,

Up until recently, I have been creating my ebooks with Microsoft Word and exporting to PDF for reading on my PRS-600.

This worked fine, however I wanted more control over my fonts, justification, etc. so I recently started using XeLaTeX to create my PDFs.

Since switching to XeLaTeX, I notice that I can no longer use the dictionary feature of the PRS-600. The reason is that now, when I double-tap a word, it selects everything from the previous punctuation mark to the next instead of just the word.

Does anyone know why this happens with a PDF output from XeLaTeX and not with a PDF output from Word? How can I correct this behaviour?

s3ntient is offline   Reply With Quote
Old 11-05-2009, 02:18 PM   #2
frabjous
Evangelist
frabjous plays well with othersfrabjous plays well with othersfrabjous plays well with othersfrabjous plays well with othersfrabjous plays well with othersfrabjous plays well with othersfrabjous plays well with othersfrabjous plays well with othersfrabjous plays well with othersfrabjous plays well with othersfrabjous plays well with others
 
frabjous's Avatar
 
Posts: 469
Karma: 2869
Join Date: Feb 2009
Location: Amherst, MA
Device: Sony PRS-505
Interesting. I have noticed that XeLaTeX does sometimes do strange things with how it encodes characters and embeds fonts. Just as a point of comparison, do you have the same problem if you generate using plain LaTeX 2e with type 1 fonts?
frabjous is online now   Reply With Quote
Old 11-05-2009, 02:57 PM   #3
WillAdams
Addict
WillAdams doesn't litterWillAdams doesn't litterWillAdams doesn't litter
 
Posts: 237
Karma: 244
Join Date: Feb 2008
Device: Sony PRS-505, Fujitsu Stylistic
The problem is likely caused by the spaces being omitted when the .pdf is built --- instead they're encoded in as positional information which the .pdf renderer is ignoring.

If memory serves, you can get it to insert the spaces by adding:

\XeTeXinterchartokenstate=1

to your document preamble.

William
WillAdams is offline   Reply With Quote
Old 11-05-2009, 04:47 PM   #4
s3ntient
Junior Member
s3ntient began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2009
Device: PRS-600
Quote:
Originally Posted by frabjous View Post
Interesting. I have noticed that XeLaTeX does sometimes do strange things with how it encodes characters and embeds fonts. Just as a point of comparison, do you have the same problem if you generate using plain LaTeX 2e with type 1 fonts?
I tried a few things, here are the results:
  • Using LaTeX 2e with type 1 fonts, the same behaviour: double-tapping selects from previous punctuation mark to next.
  • Using LaTeX 2e with type 1 fonts, I tried enclosing a single word between two punctuation marks, double-tapping recognizes the word and brings up the definition.
  • As mentioned, using XeLaTeX double-tapping selects from previous punctuation mark to next.
  • Using XeLaTeX with OTF fonts embedded as type 1, double-tapping a word enclosed between two punctuation marks selects the word but does not recognize it as a word or bring up the definition.

Quote:
Originally Posted by WillAdams View Post
The problem is likely caused by the spaces being omitted when the .pdf is built --- instead they're encoded in as positional information which the .pdf renderer is ignoring.

If memory serves, you can get it to insert the spaces by adding:

\XeTeXinterchartokenstate=1

to your document preamble.

William
I would agree with you 100%, the problem is the handling of spacing between characters/words.

I looked up the command you mentioned, it enables you to insert tokens between different characters. However I'm not quite sure how to use it to solve my problem, or even if these interchartokens can solve my problem.


Thank you both for you replies
s3ntient is offline   Reply With Quote
Old 11-06-2009, 10:35 AM   #5
WillAdams
Addict
WillAdams doesn't litterWillAdams doesn't litterWillAdams doesn't litter
 
Posts: 237
Karma: 244
Join Date: Feb 2008
Device: Sony PRS-505, Fujitsu Stylistic
OIC. In that case, for xelatex, it's likely an issue of the pdf viewer failing to understand how the font is encoded.

I would try sending a sample file to Sony and seeing if they'd look into it.

William
WillAdams is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sony PRS-600 PDF ZOOM davidspitzer Sony Portable Reader (New Forum) 33 Yesterday 09:34 PM
The PRS-600 dictionary AprilHare Sony Portable Reader (New Forum) 36 11-12-2009 07:34 AM
Sony PRS-600 Dictionary dek Sony Portable Reader (New Forum) 12 09-09-2009 07:19 AM
Does the PRS-300SC have pdf zoom like the prs-600? jsmithlamington Which one should I buy? 2 08-23-2009 02:00 AM
eBook for PDF files? If so, Sony PRS 600? Alternatives? jferreir Which one should I buy? 4 08-12-2009 01:25 PM


All times are GMT -4. The time now is 09:24 AM.


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