Quote:
Originally Posted by Agama
I'm not sure that unicode is to blame here as it's possible to code html files in unicode, (presumably with Chinese characters). The output from Markdown processing is html so it may be worth more investigation. Perhaps the intermediate html files, (use calibre's debug mode), may shed some light on this problem.
|
Thanks, Agama, you are right it's not the unicode as I thought. It turns out to be the issue with the paragraph spaces. now I can duplicate same issue with your script also - on the TXT Input tab of Calibre, if I check the Preserve Spaces option, the same thing will happen: the TOC will be like literally "///Table of Contents///" and not a real hyper linked content list, the notes link will take you to the first page no matter it's the notes link in the text or the reverse link in the notes section. If I uncheck that "Preserve Spaces", both the TOC and notes links are working fine, however, the indent for each paragraph is too much (about 4 Chinese characters) - in my original txt file each paragraph has a 2 character indent, that is why I chose the "Preserve Spaces" option to render each paragraph to be indented by only 2 spaces - however this breaks the notes link for some reason I don't quite understand. I will live with these 4 character ugly indent for the paragraph for now as at least all the links work fine, it just doesn't look too good but it works. Thanks again.