11 Apr 2013 23:26

### hyphens, dashes and friends

Many years ago, when I was in school, I used LaTeX for writing all my papers.  From that, I developed the following habits for hyphen/dash usage:

- A single hyphen for combined words: "blue-green"
- A double hyphen for numerical ranges: "50--100"
- A triple hyphen---in other words, a dash---as a grammatical construct, as in this bullet point

Of course, LaTeX transformed those strings of hyphens into lines of increasing length for the printable output.  But I personally adopted the convention even for plain text (such as emails), and now it's virtually impossible for me to not do that.

And for what it's worth, I've noticed that the auto-correct features in Microsoft Outlook seems to follow somewhat similar rules... I haven't taken the time to figure out exactly what does what, but there is definitely a distinction between hyphens and dashes.

I can't seem to find if there is any similar convention in txt2tags.  In fact, the double hyphen gets interpreted as strikethrough.  So I was just wondering how people handle this.

Thanks!
Matt

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
9 Apr 2013 13:19

### txt2tags in a python script

Hi,

I would like to create a python script that uses a variable as input for txt2tags without the creation of a t2t file. Is it possible?

Thanks

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
4 Apr 2013 20:39

### Interpreted marks in title tags and named links

Hi all.

I'm trying to find a way to get interpreted marks inside a title tag or a named link.  For example, say I want a section of my document to have the title

Why Wuthering Heights should not be taught in school

Doing this the naive way

== Why //Wuthering Heights// should not be taught in school ==

doesn't work, because marks are not interpreted inside of title tags.  The only thing I've been able to figure out is to use a postproc filter like

%!postproc(html): "TAG{(.*?)}" <\1>

and then use this inside the title tags:

== Why TAG{i}Wuthering HeightsTAG{/i} should not be taught in school ==

Of course, this makes me sad for many reasons.  A similar problem happens in named links, and I'm sure in many other places where marks aren't interpreted.  I've looked and looked and can't find a nice way to do this.  Does anyone have any advice for me?

Thanks!

galen
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
1 Apr 2013 19:42

### mark2tags, the new lightweight markup langage.

John Gruber and Aurelio Jargas, the respective founders of markdown and txt2tags, have just announced the
imminent release of mark2tags, the future of wiki markup.

It will be the next industry standard, with an innovative syntax everyone will agree on.

"mark2tags, the last wiki syntax you'll ever need to learn. Period."

===================

---------------------

*italic*
**underline**
***bold***

****bold and italic****
******bold, underlined and italic******

{image.jpg}[image title]

& list item 1
& list item 2
&& sublist
&& sublist 2
&&& subsublist

♓ numbered list item 1
♓ numbered list item 2
♓ numbered list item 3

It will also include social markup, such as:

lol(for funny paragraphs)
tumblr{image.jpg}  for publishing on tumblr

We hope you'll like it.

After the 2nd of April, http://daringfireball.net/projects/markdown/ and http://www.txt2tags.org
will merge and automatically redirect to http://www.mark2tags.org

We advice you to migrate to the new markup as soon as possible.

------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d _______________________________________________ txt2tags-list mailing list https://lists.sourceforge.net/lists/listinfo/txt2tags-list  11 Feb 2013 19:29 ### txt2tags generating wrong asciidoc ? Hi, I am using txt2tags version "txt2tags version 2.6 <http://txt2tags.org>" and I am using it to generate asciidoc. It seems its generating wrong asciidoc, is it a bug or something? ====test.t2t==== %!target : adoc %!encoding : UTF-8 - Item - Sub Item ====text.t2t==== generates ====test.adoc==== - Item - Sub Item ====test.adoc==== Notice the list markup in generated adoc. -- - Pradeep Jindal ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb 11 Dec 2012 01:49 ### dokuwiki and txt2tags Now you can create dokuwiki pages and edit them using the txt2tags syntax! https://www.dokuwiki.org/plugin:txt2tags ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d  6 Dec 2012 20:19 ### How do you convert HTML to txt2tags _automatically_??? Greetings, the title says it all. I DO know about this VI/VIM macro (if that's the correct name): http://txt2tags.org/tips.html#html-to-t2t but I am looking for a way to do everything in a shell script, not interactively inside VI or VIM I have found this suggestion on how to run vi inside a shell script: http://www.computing.net/answers/linux/use-vi-within-script/29184.html but I can't find a way to adapt that trick to load a local copy of this file http://txt2tags.googlecode.com/svn/trunk/extras/unhtml.vim and execute it. Is it possible? If not, could that unhtml.vim file be loaded/executed via awk, sed, whatever... with as little editing as possible? If that isn't possible either, are there other already tested ways to automatically convert an HTML file to t2t markup from inside a shell script? TIA, MArco ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d  20 Nov 2012 11:39 ### Latex equations Hello ! I'm new to txt2tags. I would like to create a latex document and a html document from the same source. My problem is with math equations in latex : what should I type in txt2tags in order to obtain, for example,$\frac{1}{2}$in the latex output, instead of \$\backslash frac\{1 ... ?
Thanks
--
Fabrice LALLEMAND

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from$795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
13 Nov 2012 21:54

### some scammers made a fake txt2tags book

I've just discovered this "book":

http://www.barnesandnoble.com/w/txt2tags-lambert-m-surhone/1026253107

It's very expensive ($45) for a meaningless collection of articles retrieved from wikipedia. I don't understand why Barnes and Noble (and others such as Amazon) allow this compagny to sell such things on their store. It's not a good advertisement for their business. More about this: https://en.wikipedia.org/wiki/VDM_Publishing https://en.wikipedia.org/wiki/User:PrimeHunter/Alphascript_Publishing_sells_free_articles_as_expensive_books http://www.chrisrand.com/blog/index.php/2010/02/27/odd-tale-alphascript-publishing-betascript-publishing/ ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from$795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
Pricing starts from \$795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
30 Jul 2012 09:28

### First post, possibly an odd request..

Hello everyone, first post, and apologies if my question seems a bit
odd. It might need to go to the devs list

I have an old E61 Nokia phone, I can run python 1.4.5 on it. I've
tried in the past to get an older version of txt2tags to run on it. I
never got it to run, from memory I tried to import as many modules as
I could see mentioned.

I almost got it to run in the past but I think the problem is there is
no command line interface. Python script shell 1.4.5 and python for
d60 is installed.

So sorry for the odd request has anyone got an idea how to get the
thing to work? Any guesses?

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

25 Jul 2012 14:24

### convert from html to txt2tags

I often need to convert from HTML to t2t.

There is already https://txt2tags.googlecode.com/svn/trunk/extras/unhtml.vim but the result is not always clean and it's not scriptable.

Pandoc (http://johnmacfarlane.net/pandoc/) can also convert from html to several other formats, but I didn't manage to adapt it to txt2tags (it seems complicated to compile so I didn't go furthen than a simple installation)

But I've just discovered this handy piece of software:
http://search.cpan.org/dist/HTML-WikiConverter/

It converts from html to some wiki formats, such as dokuwiki or mediawiki. The good new is it's very easy to adapt to new syntax. For example part of the definition file is like this:

b => { start => '**', end => '**' },
strong => { alias => 'b' },
i => { start => '//', end => '//' },
em => { alias => 'i' },
u => { start => '__', end => '__' },

I've create a txt2tags export: https://textallion.googlecode.com/hg/contrib/HTML-WikiConverter-Txt2tags/lib/HTML/WikiConverter/Txt2tags.pm

Until it's clean enough to put on the txt2tags svn, I've put the (work in progress) project there:

Once html2wiki is installed and this module as well, you can invoke it this way:

html2wiki --dialect Txt2tags file.html

You can even get remote files and convert them like this:
curl --silent  http://theody.net/elements.html |  html2wiki --dialect Txt2tags > elements.t2t

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

Gmane