ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* ebook from project: hyphenation lost
@ 2012-06-04  8:55 Henning Hraban Ramm
  2012-06-04  9:14 ` Andy Thomas
  0 siblings, 1 reply; 4+ messages in thread
From: Henning Hraban Ramm @ 2012-06-04  8:55 UTC (permalink / raw)
  To: mailing ConTeXt users list for

Ahoi,

I never managed to get a proper eBook from a project, the content was  
mostly missing, a whole while even \setupbackend[export=yes] led to an  
error.
At least that I don’t get an error any more, I’ll try to debug the  
missing content later.

One bug I can nail down is:
As soon as I add \setupbackend[export=yes] to my environment, all  
hyphens are lost! I.e. hyphenation takes place, but there’s no hyphen  
(an no space left for it).
That doesn’t happen in a single document, so I can’t provide a minimal  
example.

(Yesterday’s beta MkIV on OSX-Intel)

Greetlings,
Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ebook from project: hyphenation lost
  2012-06-04  8:55 ebook from project: hyphenation lost Henning Hraban Ramm
@ 2012-06-04  9:14 ` Andy Thomas
  2012-06-04  9:36   ` Henning Hraban Ramm
  2012-06-04 11:14   ` Marco
  0 siblings, 2 replies; 4+ messages in thread
From: Andy Thomas @ 2012-06-04  9:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello,

I followed Marco's description on tex.sx with quite good results.

http://tex.stackexchange.com/q/43052/8631

He explicitly states: "Hyphenation is also present. ConTeXt inserts soft hyphen (0x00AD) characters where hyphenation is possible, which enables the browser to justify the paragraphs." Although a quick check of my xml file shows, that there is no hyphenation in Safari and there are no 0x00AD characters I can find with a Hex-Editor. Maybe you could try with different viewers/browsers, because if there is an 0x00AD in the source, doesn't the viewer have to take care of the actual hyphenation? 

Andy


On 04.06.2012, at 10:55, Henning Hraban Ramm wrote:

> Ahoi,
> 
> I never managed to get a proper eBook from a project, the content was mostly missing, a whole while even \setupbackend[export=yes] led to an error.
> At least that I don’t get an error any more, I’ll try to debug the missing content later.
> 
> One bug I can nail down is:
> As soon as I add \setupbackend[export=yes] to my environment, all hyphens are lost! I.e. hyphenation takes place, but there’s no hyphen (an no space left for it).
> That doesn’t happen in a single document, so I can’t provide a minimal example.
> 
> (Yesterday’s beta MkIV on OSX-Intel)
> 
> Greetlings,
> Hraban
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ebook from project: hyphenation lost
  2012-06-04  9:14 ` Andy Thomas
@ 2012-06-04  9:36   ` Henning Hraban Ramm
  2012-06-04 11:14   ` Marco
  1 sibling, 0 replies; 4+ messages in thread
From: Henning Hraban Ramm @ 2012-06-04  9:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 2012-06-04 um 11:14 schrieb Andy Thomas:

> Hello,
> I followed Marco's description on tex.sx with quite good results.
> http://tex.stackexchange.com/q/43052/8631

Thanks for the link!

> He explicitly states: "Hyphenation is also present. ConTeXt inserts  
> soft hyphen (0x00AD) characters where hyphenation is possible, which  
> enables the browser to justify the paragraphs." Although a quick  
> check of my xml file shows, that there is no hyphenation in Safari  
> and there are no 0x00AD characters I can find with a Hex-Editor.  
> Maybe you could try with different viewers/browsers, because if  
> there is an 0x00AD in the source, doesn't the viewer have to take  
> care of the actual hyphenation?

I meant hyphenation in the PDF; I don’t yet care about the XML/XHTML,  
since it’s broken/incomplete anyway. (I need to get the PDF to the  
printer first, then care about the eBook, just ried to include the  
setup from start.)


Greetlings, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ebook from project: hyphenation lost
  2012-06-04  9:14 ` Andy Thomas
  2012-06-04  9:36   ` Henning Hraban Ramm
@ 2012-06-04 11:14   ` Marco
  1 sibling, 0 replies; 4+ messages in thread
From: Marco @ 2012-06-04 11:14 UTC (permalink / raw)
  To: ntg-context

On 2012-06-04 Andy Thomas <andythomas@web.de> wrote:

> He explicitly states: "Hyphenation is also present. ConTeXt
> inserts soft hyphen (0x00AD) characters where hyphenation is
> possible, which enables the browser to justify the paragraphs."
> Although a quick check of my xml file shows, that there is no
> hyphenation in Safari and there are no 0x00AD characters I can
> find with a Hex-Editor.

Don't inspect the XML rendered by the browser. Open the XML file
directly with an editor. I don't know if the soft hyphens survive
being digested by my mail agent, but the source contains 0x00AD
characters:

	The Earth, as a habi­tat for an­i­mal life, is in old age and has
	a fa­tal ill­ness. Sev­eral, in fact. It would be hap­pen­ing
	whether hu­mans had ever evolved or not.

> Maybe you could try with different viewers/browsers, because if
> there is an 0x00AD in the source, doesn't the viewer have to take
> care of the actual hyphenation? 

Exactly, and it works fine here, even with an ancient version of
Firefox (4.0)


Marco


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-06-04 11:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-04  8:55 ebook from project: hyphenation lost Henning Hraban Ramm
2012-06-04  9:14 ` Andy Thomas
2012-06-04  9:36   ` Henning Hraban Ramm
2012-06-04 11:14   ` Marco

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).