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

Go Back   MobileRead Forums > E-Book Formats > PDF

Notices

Reply
 
Thread Tools Search this Thread
Old 11-05-2009, 12:18 PM   #1
s3ntient
Member
s3ntient began at the beginning.
 
Posts: 20
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
Advert
Old 11-05-2009, 01:18 PM   #2
frabjous
Wizard
frabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
frabjous's Avatar
 
Posts: 1,213
Karma: 12890
Join Date: Feb 2009
Location: Amherst, Massachusetts, USA
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 offline   Reply With Quote
Old 11-05-2009, 01:57 PM   #3
WillAdams
Wizard
WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.
 
WillAdams's Avatar
 
Posts: 1,065
Karma: 2068710
Join Date: Feb 2008
Device: Sony PRS-600, Toshiba Encore 2 Write 10
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, 03:47 PM   #4
s3ntient
Member
s3ntient began at the beginning.
 
Posts: 20
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, 09:35 AM   #5
WillAdams
Wizard
WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.
 
WillAdams's Avatar
 
Posts: 1,065
Karma: 2068710
Join Date: Feb 2008
Device: Sony PRS-600, Toshiba Encore 2 Write 10
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
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-600 Replacing dictionary on PRS-600 SieGHe Sony Reader 2 03-30-2010 09:11 PM
prs-300/prs-600 --> text pdf redable Evolut1on Sony Reader 16 03-11-2010 11:29 AM
The PRS-600 dictionary AprilHare Sony Reader 36 11-12-2009 06:34 AM
Sony PRS-600 Dictionary dek Sony Reader 12 09-09-2009 06:19 AM
Does the PRS-300SC have pdf zoom like the prs-600? jsmithlamington Which one should I buy? 2 08-23-2009 01:00 AM


All times are GMT -4. The time now is 12:00 AM.


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