Re: yen and soft hyphen
Nevermind. I have a horrible memory for numbers--I misremembered the 0x00AD as a 0x00A5. While on the subject of soft hyphens, no FntWordWrap() does not handle them. However, it doesn't really matter given how I use FntWordWrap(). (I back up from the break indicated by FntWordWrap() one character to the left of the last soft hyphen or space, and then run things through the standard GetLineMetrics() handler.) Perhaps text that does a lot of soft hyphen breaking will be processed a touch slowly, but it should render OK (though I haven't tried it). Alex -- Dr. Alexander R. Pruss || e-mail: [EMAIL PROTECTED] Philosophy Department || online papers and home page: Georgetown University || www.georgetown.edu/faculty/ap85 Washington, DC 20057|| U.S.A. || - Philosophiam discimus non ut tantum sciamus, sed ut boni efficiamur. - Paul of Worczyn (1424) ___ plucker-dev mailing list [EMAIL PROTECTED] http://lists.rubberchicken.org/mailman/listinfo/plucker-dev
Re: yen and soft hyphen
On Tue, Jul 08, 2003, Alexander R. Pruss wrote: Nevermind. I have a horrible memory for numbers--I misremembered the 0x00AD as a 0x00A5. I think we should mind anyway. Bug report #356 is a related problem for 0xAD and the Thai language. /Mike ___ plucker-dev mailing list [EMAIL PROTECTED] http://lists.rubberchicken.org/mailman/listinfo/plucker-dev
Re: yen and soft hyphen
On Tue, 8 Jul 2003, Michael Nordstrom wrote: On Tue, Jul 08, 2003, Alexander R. Pruss wrote: Nevermind. I have a horrible memory for numbers--I misremembered the 0x00AD as a 0x00A5. I think we should mind anyway. Bug report #356 is a related problem for 0xAD and the Thai language. We could check the metadata for the encoding and select the soft hyphen appropriately. Actually, we should do this for all the dashes, I suppose. Alex -- Dr. Alexander R. Pruss || e-mail: [EMAIL PROTECTED] Philosophy Department || online papers and home page: Georgetown University || www.georgetown.edu/faculty/ap85 Washington, DC 20057|| U.S.A. || - Philosophiam discimus non ut tantum sciamus, sed ut boni efficiamur. - Paul of Worczyn (1424) ___ plucker-dev mailing list [EMAIL PROTECTED] http://lists.rubberchicken.org/mailman/listinfo/plucker-dev
Re: yen and soft hyphen
I propose that we make the soft hyphen character into a function rather than an actual character, and remove support for 0xA5 as a soft hyphen. Or am I misunderstanding something in the code? The current code mainly just tries to pass bytes along, so that it will work for various character set encodings (like BIG-5) that it doesn't understand (which are basically all of them). It assumes that the viewer will have the same character set encoding. It also stashes the character set in use in the metadata record, if it can figure out what it is. So a viewer could check that for each Plucker record, and try to do something smart if the charset didn't match the viewer or Palm charset (if you can figure out what the Palm charset is). So there is no support for 0xA5 in the code (and nothing to remove); what you've got is a mismatch between the charset in the original and the charset in the viewer. Again, if we switched to Python 2.0, which has good charset handling features, and if we can figure out what charset is in use in the source page, which with HTML is always problematic, and if we knew more about the charset models actually used by various viewers, we could do more. Bill ___ plucker-dev mailing list [EMAIL PROTECTED] http://lists.rubberchicken.org/mailman/listinfo/plucker-dev
Re: yen and soft hyphen
On Tue, 8 Jul 2003, Bill Janssen wrote: So there is no support for 0xA5 in the code (and nothing to remove); This is true for 0xA5. But it's not true for 0xAD. Support for the soft-hyphen is hardcoded in. Alex -- Dr. Alexander R. Pruss || e-mail: [EMAIL PROTECTED] Philosophy Department || online papers and home page: Georgetown University || www.georgetown.edu/faculty/ap85 Washington, DC 20057|| U.S.A. || - Philosophiam discimus non ut tantum sciamus, sed ut boni efficiamur. - Paul of Worczyn (1424) ___ plucker-dev mailing list [EMAIL PROTECTED] http://lists.rubberchicken.org/mailman/listinfo/plucker-dev