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

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 11-25-2018, 06:31 PM   #16
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,496
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
If I can get the Word document, I can take a look at it. It should be possible to retain the cross-links, although I usually advise to remove them since they cause headaches very often.
I am also interested to see what happens when I run it through my experimental DOCX to HTML converter which uses a totally different mechanism.

I think my advise in general would be, as also mentioned before, is try to use a single level. To be honest I don't really feel the need, but that is probably because I don't really get it.
Toxaris is offline   Reply With Quote
Old 11-25-2018, 07:05 PM   #17
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 1,117
Karma: 6099999
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Hitch View Post
Footception? Really? You're killing me here. :-)
lol, I just took the term from that LaTeX thread!

I thought Footnoteception sounded better, but might as well continue with the precedence. :P

Quote:
Originally Posted by Hitch View Post
Well...in print, it would be relatively simple; you could indent the sub-notes. Perhaps that's the answer here?
Hmm, perhaps if the Footnotes were relatively short, but Alcuin7's source document has footnotes that are PAGES long. And ALREADY use indentation for long numbered lists within footnotes. (Also mentioned this poor readability to him via PM.)

The indentation goes on for pages and pages, and it becomes impossible to follow "which level" you are on after going 2-3 pages away.

* * *

And according to a quick skimming of the document, I don't see why it couldn't be*:

123, 123a, 123b, 123b1, 124, [...].

His specific book doesn't really have DISTINCT sets of footnotes (like Author/Translator/Editor).

* Note: Well, besides Word not supporting it. :P

Quote:
Originally Posted by Hitch View Post
We need Toxaris for this. I "know" that there's a huge issue surrounding Word's built-in x-refs, which is what you're talking about. The cross-referencing and indexing functions work in a way that's unique to Word, [...] But honestly, Tex, I don't remember it that clearly and we should ask Tox. What he doesn't know about Word isn't worth knowing, in terms of the export to HTML.
This is Word's built-in Save As HTML... and it doesn't even export them properly. Bah!

* * *

I'll have to read up on Word's cross-ref functionality and come up with a better test document as an MWE (Minimal Working Example).

I also tested his DOCX in LibreOffice 6.1.3:

Opening his initial DOCX (created in Word 2003), LibreOffice was chugging away for MINUTES (about 4 minutes), the RAM usage just kept climbing up and up (>3GBs) and the progress bar didn't move... so I killed it.

I opened/saved his DOCX in Word 2016. LibreOffice was able to open this one after a little. And as you predicted, the cross-refs within footnotes didn't work. They weren't clickable.

(Also wasn't able to save the DOCX in LibreOffice, it froze. I let it chug away for about 15 minutes, and it got stuck with no forward progress. I'll probably have to create a document and submit a bug report.)

* * *

And on Word's Indexes... I did test DOCX Save As HTML about a year ago, and found it to also unleash some HIDEOUS HTML, but at least it worked (if I remember correctly).

Calibre also converted when you did DOCX->EPUB, but it turned everything into a hideous nest of [1], [2], [3] links, which became absolutely impossible to follow.

So something like:

cats, 82, 84, 119
dogs, 84, 123

became:

cats, [1], [2], [3]
dogs, [2] (since "84" already had a link), [4]

Again, I'll have to go back and come up with another good test document.

Quote:
Originally Posted by Hitch View Post
And if you just export it to HTML, not using the Docx-->ePUB functionality in Calibre? Is it different, or no?
Just tested DOCX->HTMLZ on his source file, and Calibre generates the exact same HTML as the DOCX->EPUB.

Quote:
Originally Posted by BetterRed View Post
Cross References in Word are implemented via Word Fields, the primary use of which is MailMerge and Excel integration. Word Fields can be nested. But I don't think foot/chapter/end notes use Word Fields, hence they don't inherit Field nestability.
This is what a single "cross-ref within Footnote":

Code:
bondholders.<sup>119</sup>
with a clickable 119 looked like when I ripped apart the footnotes.xml file:

Original, DOCX from Word 2003:

Spoiler:
Code:
<w:r w:rsidRPr="00971AE9">
	<w:t>bondholders.</w:t>
</w:r>
<w:fldSimple w:instr=" NOTEREF _Ref517136847 \h  \* MERGEFORMAT ">
	<w:r>
		<w:rPr>
			<w:vertAlign w:val="superscript"/>
		</w:rPr>
		<w:t>119</w:t>
	</w:r>
</w:fldSimple>


DOCX from Word 2016:

Spoiler:
Code:
<w:r w:rsidRPr="00971AE9">
	<w:t>bondholders.</w:t>
</w:r>
<w:r w:rsidR="0028080B">
	<w:fldChar w:fldCharType="begin"/>
</w:r>
<w:r w:rsidR="0028080B">
	<w:instrText xml:space="preserve"> NOTEREF _Ref517136847 \h  \* MERGEFORMAT </w:instrText>
</w:r>
<w:r w:rsidR="0028080B">
	<w:fldChar w:fldCharType="separate"/>
</w:r>
<w:r>
	<w:rPr>
		<w:vertAlign w:val="superscript"/>
	</w:rPr>
	<w:t>119</w:t>
</w:r>
<w:r w:rsidR="0028080B">
	<w:fldChar w:fldCharType="end"/>
</w:r>


Yuck. :P

Quote:
Originally Posted by Hitch View Post
LOL, there are probably people who would say that's wrong, too. You know how it is.
There's only the Tex way, or the wrong way. :P

Quote:
Originally Posted by Hitch View Post
I have the latest Kindle, AFAIK, the KFire 10, and I don't think it can override, even though it does allow user-selected line-heights/spacing and body text alignment.
Gitden Reader has been my go-to reading app on my phone, and it works exactly how I imagine in there. The user-justification works fantastically.

Only thing about Kobo Forma (at least the books I've tested on), is it overrides centered <div>s too, so centered images get shifted left. But I consider that a software bug/quirk (and I'll have to report it to them).

Again, this should be on Amazon to actually fix the functionality in their renderer, NOT be pulling books down over common CSS/formatting. If the buttons are there on the device, they should override any sort of Publisher formatting:

User >>> Publisher > Device Defaults.

Last edited by Tex2002ans; 11-25-2018 at 07:30 PM.
Tex2002ans is offline   Reply With Quote
Old 11-30-2018, 01:57 AM   #18
Alcuin7
Junior Member
Alcuin7 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Nov 2018
Device: none
Updating cross-links in Word is fairly easy. First in the main text, Ctrl-A (Select All) and hit F9. If there are tables (such as table of contents) it will ask if you want to update entire tables or just page numbers. Then place the cursor in any footnote/endnote. Since I used cross-links to refer to real footnotes (which I hid as described before in the Word primary text), and cross-link numbering does not automatically update, you must do this manually. Ctrl-A in the footnotes (Select All for the references) and press F9. Word will warn you that your action cannot be undone. Accept that, and all the cross-links will correctly update throughout the footnotes.

BTW, cross-references are clickable in my version of Word.

And yes, some of the footnotes are almost separate chapters. And until the book can be professionally edited, they will remain long, complex footnotes. Using EPUB and what I have learned in this thread will allow me to separate primary and secondary footnotes (endnotes), and hopefully on the printed page as well.

Thanks to all for your assistance and observations.
Alcuin7 is offline   Reply With Quote
Old 11-30-2018, 03:16 AM   #19
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 1,117
Karma: 6099999
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Alcuin7 View Post
Updating cross-links in Word is fairly easy. First in the main text, Ctrl-A (Select All) and hit F9.
Ahhh, thanks. I'll have to poke around and test that.

I'm not too familiar with Word's complex intricacies (I try to get things OUT of that format ASAP). :P

Is there a setting buried somewhere that'll regenerate cross-links on open?

Quote:
Originally Posted by Alcuin7 View Post
And yes, some of the footnotes are almost separate chapters. And until the book can be professionally edited, they will remain long, complex footnotes. Using EPUB and what I have learned in this thread will allow me to separate primary and secondary footnotes (endnotes), and hopefully on the printed page as well.

Thanks to all for your assistance and observations.
Good luck.
Tex2002ans is offline   Reply With Quote
Old 11-30-2018, 03:52 AM   #20
Alcuin7
Junior Member
Alcuin7 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Nov 2018
Device: none
Quote:
Originally Posted by Tex2002ans View Post
Is there a setting buried somewhere that'll regenerate cross-links on open?
Of course not. Word is from Microsoft. Cross-links require manual refresh. But they do refresh correctly, or always have for me for many years.

Note that regenerating cross-links in footnotes/endnotes requires Ctrl-A and F9 in the footnotes/endnotes. Just doing that in the main text will leave all references unchanged.
Quote:
Originally Posted by Tex2002ans View Post
Good luck.
Thanks. I shall need it.
Alcuin7 is offline   Reply With Quote
Old 11-30-2018, 02:19 PM   #21
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 7,210
Karma: 65872031
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, and NookColor. 2 Droid, 1 Win8 ePUB rdrs
Quote:
Originally Posted by Toxaris View Post
If I can get the Word document, I can take a look at it. It should be possible to retain the cross-links, although I usually advise to remove them since they cause headaches very often.
I am also interested to see what happens when I run it through my experimental DOCX to HTML converter which uses a totally different mechanism.

I think my advise in general would be, as also mentioned before, is try to use a single level. To be honest I don't really feel the need, but that is probably because I don't really get it.
Tox--did you ever see the Word file?

Hitch
Hitch is offline   Reply With Quote
Old 11-30-2018, 02:40 PM   #22
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,496
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
Quote:
Originally Posted by Hitch View Post
Tox--did you ever see the Word file?

Hitch
Nope, I haven't seen it.
Toxaris is offline   Reply With Quote
Old 11-30-2018, 02:41 PM   #23
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,496
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
Quote:
Originally Posted by Alcuin7 View Post
Of course not. Word is from Microsoft. Cross-links require manual refresh. But they do refresh correctly, or always have for me for many years.

Note that regenerating cross-links in footnotes/endnotes requires Ctrl-A and F9 in the footnotes/endnotes. Just doing that in the main text will leave all references unchanged.
Thanks. I shall need it.
You need to do it in the foot-/endnotes as well, as they are a different 'story' in the document. That is why in my add-in I always run the action over all the stories (there are more than just the main part and the foot-notes).
Toxaris 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
Endnotes on old Kindles AlexBell Kindle Formats 4 01-11-2015 03:16 AM
pop-up endnotes roger64 Calibre 34 11-23-2014 08:46 PM
Pop-up endnotes crutledge ePub 16 06-17-2014 04:41 AM
Endnotes Siam Sigil 14 03-17-2013 03:05 PM
mobi endnotes kphoenix Kindle Formats 0 01-24-2011 07:51 PM


All times are GMT -4. The time now is 04:22 AM.


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