maven:embedding this java tiddlywiki parser

I excluded this java tiddlywiki parser of this web application and published it on maven third repository.

index
1.embedding Java Tiddlywiki Parser with Maven
2.embedding Java Tiddlywiki Parser without Maven
3.trying this eclipse project
4.how to use
5.Extra: splitting a classic static TiddlyWiki.html into the pieces

You can browse the code here.

rep.png
JTiddlywikiParser.java is the main code.

repository http://bazaar.launchpad.net/~ryoji-kodakari/gt/javaTiddlywikiParser/files

Attention: this parser doesn't support CamelCase, @Highlight@.

Embedding Java Tiddlywiki Parser with Maven

add pom.xml

	<dependencies>
...
		<dependency>
			<groupId>tiddlywiki.syntax.parser</groupId>
			<artifactId>parser</artifactId>
			<version>0.0.1-SNAPSHOT</version>
		</dependency>
	</dependencies>

	<repositories>
		<repository>
			<id>http dachoh.web.fc2.com</id>
			<name>dummy of tsrtesttest.appspot.com</name>
			<url>http://dachoh.web.fc2.com/mvn/</url>
		</repository>
	</repositories>
...
</project>

..if you can't retrieve it, download .m2.zip and merge them to your .m2 folder instead.

7/17/13 10:46:00 PM JST: Maven Builder: AUTO_BUILD 
7/17/13 10:47:10 PM JST: Refreshing [/test/pom.xml]
7/17/13 10:47:10 PM JST: [INFO] snapshot tiddlywiki.syntax.parser:parser:0.0.1-SNAPSHOT: checking for updates from http dachoh.web.fc2.com
7/17/13 10:47:12 PM JST: Downloading http://dachoh.web.fc2.com/mvn/tiddlywiki/syntax/parser/parser/0.0.1-SNAPSHOT/parser-0.0.1-20130717.132543-1.pom
7/17/13 10:47:12 PM JST: Downloaded http://dachoh.web.fc2.com/mvn/tiddlywiki/syntax/parser/parser/0.0.1-SNAPSHOT/parser-0.0.1-20130717.132543-1.pom
7/17/13 10:47:14 PM JST: Downloading http://dachoh.web.fc2.com/mvn/tiddlywiki/syntax/parser/parser/0.0.1-SNAPSHOT/parser-0.0.1-20130717.132543-1.jar
7/17/13 10:47:14 PM JST: Downloaded http://dachoh.web.fc2.com/mvn/tiddlywiki/syntax/parser/parser/0.0.1-SNAPSHOT/parser-0.0.1-20130717.132543-1.jar

Embedding Java Tiddlywiki Parser without Maven

Download these following files.
1.http://bazaar.launchpad.net/~ryoji-kodakari/gt/javaTiddlywikiParser/view/head:/target/parser-0.0.1-SNAPSHOT.jar (The parser. this file including 4 files.)

the 4 files

  DBF.class
  JTiddlywikiParser.class
  TFF.class
  URCF.class

2.Excuse me but this parser has one dependency. Download org.apache.commons.codec-1.6.jar and set it in Build Path too.

Trying this eclipse project

/file/maven:embedding this java tiddlywiki parser/1.5.png
please make sure Java Compiler Environment is set to 1.5

How to use

mvnrepotest.png

      new JTiddlywikiParser().parse( tiddlywiki syntax text, [the name of page])
tiddlywiki syntax text
like [img[foo.png]], !h1 ;dt:dd *list...
the name of page
it's used when [img[]] tag form is like not [img[./foo.jpg]], [img[http://www.foo.jpg]], [img[/file/page/foo.jpg]] but [img[foo.jpg]] (meaning [img[/file/THIS PAGE/foo.jpg]]). set null or "" if you don't need.
returns
html text

Splitting a classic static TiddlyWiki.html into the pieces

It's nothing but nonsense so far...

binary rec-0.0.1-SNAPSHOT.jar
repository http://bazaar.launchpad.net/~ryoji-kodakari/tiddlywikisplitter/tsr/view/head:/src/main/java/tiddsite/tiddsite/Tsr.java only.
dependency none

http://classic.tiddlywiki.com/ →splitting→ http://dachoh.web.fc2.com/classic/out/index.html

Attention: this parser specially supports CamelCase as well as other markups.

how to use

tsr.png
1.put rec-0.0.1-SNAPSHOT.jar into your TiddlyWiki.html folder.
2.rename your TiddlyWiki.html to tiddlywiki.html.
3.run

java -jar rec-0.0.1-SNAPSHOT.jar

in.png
4.you'll see out folder there. This folder contains index.html and other all split one.

    last modified: 25 January 2014 [ View wiki source Close ]
     
SEARCH DIFFERENCE ATTACHMENT RECENT POST