Tinderbox User-to-User Forum (for formal tech support please email: info@eastgate.com)
http://www.eastgate.com/Tinderbox/forum//YaBB.cgi
Tinderbox Users >> Exporting from Tinderbox >> Get rid of HTML in exported text?
http://www.eastgate.com/Tinderbox/forum//YaBB.cgi?num=1212139922

Message started by AndreasE on May 30th, 2008, 5:32am

Title: Get rid of HTML in exported text?
Post by AndreasE on May 30th, 2008, 5:32am

I'm writing in German,  a language that employs a lot of umlauts (ä,ö,ü etc.).

When I export text from a Tinderbox file, I get the HTML-equivalents for umlauts in note titles, while umlauts in note content remain as they are.

I'd like to get umlauts in exported titles as well. I studied the manual and the functions for hours now, but I have no clue whether this is possible or not and if, how.

Maybe someone could give me a hint? Thanks in advance.

Title: Re: Get rid of HTML in exported text?
Post by Mark Anderson on May 30th, 2008, 6:06am

My hunch is it is HTMLEntities that is controlling this. Until very recently most web pages used the basic Latin character set that didn't necessarily support accents. Now UTF-8 has become more prevalent, the need to entify (some) characters has lessened - or rather changed in scope.

In HTML/XHTML/XML use the fact characters are 'entified' shouldn't cause a problem. So, it would help to know why you want to change entity generation - are you not using the process for actual HTML output but some other format (perfectly possible!)?


Title: Re: Get rid of HTML in exported text?
Post by AndreasE on May 30th, 2008, 8:25am

I just want to export the titles and the text content of notes via Nakakoji view. What I get is a text file that reads like:

5.1 Peter hält einen Mord für möglich
Sie betreten das ältere der beiden Häuser, um die Lage zu überblicken.

The first line is the title of the note, the second the content.

Where do I change this HTMLEntities-variable?

Title: Re: Get rid of HTML in exported text?
Post by Paul Walters on May 30th, 2008, 9:01am

HTMLEntities is a system attribute.  To turn it off for all notes, select Window/Attributes (or cmd-2).  Choose the "System" tab.  Scroll down to HTMLEntities.  Change the default value to "false" and press "Change".  (You'll be warned about changing a system value, which you can ignore since change is what you intend.)

There are also ways to change the attribute for individual notes, or in prototypes - or with stamps - all covered in the manual and Wiki.

Title: Re: Get rid of HTML in exported text?
Post by AndreasE on May 30th, 2008, 10:12am

:D

Yeah. Great! Works like in a dream. Thank you very much!

Title: Re: Get rid of HTML in exported text?
Post by Mark Anderson on May 30th, 2008, 12:32pm

Glad the fix worked but I'm intrigued that the accented text should behave differently between title and text - if anything I'd expect the opposite. What is the template source code for the export for the two lines in question?

To edit attributes for the currently selected note click Cmd+Opt+i.



Title: Re: Get rid of HTML in exported text?
Post by AndreasE on May 30th, 2008, 2:45pm

The template code is dead simple:

^title^
^text^

I have modified it to (^title^) now, to make it easier to distinguish title from text. I import this into a textprocessor to beautify it before printing it.

Title: Re: Get rid of HTML in exported text?
Post by Mark Anderson on May 30th, 2008, 5:18pm

My hunch is that for text (Nakakoji) export the 'entification' of ^title^ is unintentional by TB. Good news is that you have a work-around that works!

Title: Re: Get rid of HTML in exported text?
Post by AndreasE on May 31st, 2008, 1:53am

Yes, most likely it was not intended. But it works, and so there is another happy Tinderbox user over here!  8-)

Tinderbox User-to-User Forum (for formal tech support please email: info@eastgate.com) » Powered by YaBB 2.2.1!
YaBB © 2000-2008. All Rights Reserved.