View Single Post
Old 02-23-2011, 07:35 AM   #21
Perkin
Guru
Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.
 
Perkin's Avatar
 
Posts: 657
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
Here's the EditPad syntax file and a file navigation file and more.

Upack the zip, included are five files,

Copy all these into Directory you installed EditPad into
(Mine is C:\Program Files\JGsoft\EditPadPro6)

Textile.jgcscs (the syntax file)
Textile.jgfns (a file navigation file - as flat list)
Textile_Tree.jgfns (a file navigation - as a tree)

Open EditPad, go to Options-Configure File types
In bottom left of new window, select import and point to Textile.ini

If you also want my clips, in Options-Configure File types panel, select 'System & Navigation', at bottom, point clip collection to My_Clips_Collection.atc (a small set of clips to help add styling)

In main window, open a Textile.txt file,
Or Cut and Paste these few lines.

Code:
h1. Header type 1

*Bold,* _Italics,_ and ??Citation??

* List Item
* Another Item
* Last item
Then in toolbar-Filetype - change to Textile (or Options-Filetype)
You should now have a styled file.
(Whenever you open a txt file that's Textile styled you need to change filetype to Textile, I could do it so it does all txt files, but found it easier to switch by hand.)

If you open the File Navigator panel (Ctrl+F9), the panel should open up and have the item
'Header type 1' in the list (if using the above small example)

p(poem). Also in panel opened up, should be another tab 'Clip collection', if you select that,
several clips should be listed.

If you select the word 'Another' in the main window, then double-click 'Emphasis' in the collection, the 'Another' should be surrounded by _'s.

There's four entries there I use p(none). p(cap). p(poem). and p(inset). that, when converting to epub (or whatever) get styled classes. You can also use them in span classes in your text.
(This is %(cap)SmallCaps% )

In Calibre's 'Conversion-Look & Feel-Extra CSS' I have
.inset {padding-left:10%; padding-right:10%; text-indent:0;}
.none {text-indent:0;}
.cap { font-variant: small-caps;}
.poem {padding-left:10%; padding-right:10%; text-indent:0; text-align: left; font-style: italic;}

Please bear in mind - This is still a work in progress and is not complete.

I think that's everything. Any questions, suggestions or additions?
Attached Files
File Type: zip EditPad_Textile.zip (3.2 KB, 260 views)
Perkin is offline   Reply With Quote