1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398
|
<?xml version="1.0" encoding="utf-8"?>
<!-- this file is NOT in store.xml format -->
<pagelist>
<page name="TaskList">
TEst 123
</page>
<page name="TaskList:foo">
TODO: fix 1 !!!
TODO:
* fix 2 24/3/08 !!
* fix 3 !
</page>
<page name="TaskList:bar">
TODO: test 123 test !!
* foo ! - TODO
* bar ! - TODO
* baz - TODO
[[Test:Foo:BAR]]
</page>
<page name="TaskList:all">
Try all kind of combos - see if the parser trips
TODO:
[ ] A
[ ] B
[ ] C
[ ] D
[ ] E
FIXME: dus
~~FIXME:~~ foo
[ ] Simple
[ ] List
[ ] List with
[ ] Nested items
[*] Some are done
[x] Others not
[ ] FOOOOO
[ ] Bar
[ ] And then there are @tags
[ ] And due dates
[ ] Date [d: 11/12]
[ ] Date [d: 11/12/2012]
[ ] TODO: BAR !!!
TODO @home:
[ ] Some more tasks !!!
[ ] Foo !
[ ] Bar
TODO: dus
FIXME: jaja - TODO !! @FIXME
</page>
<page name='TrashMe'>
Trash me!
</page>
<page name='TrashMe:sub page 1'>
Trash me!
</page>
<page name='TrashMe:sub page 2'>
Trash me!
</page>
<page name="Test:wiki">
Content-Type: text/x-zim-wiki
Wiki-Format: zim 0.26
====== Foo Bar ======
This is a **test page** to see how parsing goes
when ''we'' ''loop'',
arbitrary //content// through our __parser__
The was pre formatted but is not
anymore in versions >= 0.26
'''
This however
should now be verbatim
'''
'''
this too by the way !
'''
($ROOT, $PAGE, @BACK, @FORW, $UNDO, $REDO);
my (%tree_iter, $tree_loaded, $pane_visible);
my (@undo_chars, $undo_lock, $save_lock, $overwrite_toggle);
my %undo_steps = (
delete => 'insert', insert => 'delete',
apply_tag => 'remove_tag', remove_tag => 'apply_tag' );
my $link_icon = Gtk2->CHECK_VERSION(2, 6, 0) ? 'gtk-connect' : 'gtk-convert';
# gtk-connect stock item was introduced in 2.6.0
my $DATA_DIR = find_data_dir();
my $ICON_FILE = File::Spec->catfile($DATA_DIR, qw/images zim64.png/);
my %opts = ( 'read_only' => 0 );
for (@ARGV) {
next unless /^-/;
if (/^(--version|-v)$/) {
print version();
exit;
}
elsif (/^--read-?o
my $iter = $buffer->get_iter_at_mark($buffer->get_insert());
return parse_backspace($iter);
}
elsif ($val == $k_tab or $val == ord(' ')) { # Other WhiteSpace
my $buffer = $self->get_buffer;
my $iter = $buffer->get_iter_at_mark($buffer->get_insert());
my $string = ($val == $k_tab) ? "\t" : ' ';
return parse_word($iter, $string);
}
#else { printf "key %x pressed\n", $val } # perldoc -m Gtk2::Gdk::Keysyms
return 0; } )
unless $opts{read_only};
Glib::Timeout->add(5000, \&save_page)
unless $opts{read_only}; # TODO also use this timer for maintaining an undo stack
# ################# #
some pre format
dsfdf
dfssdf
sdfsdf
sdf
sdf
*&^*&%*&
===== So =====
what do we need to type
* to make
* the parser
* vomit
* ???
dfsfds
sdfd
fdsfdsfdsfds
{{foo.png}}{{bar.png}}
{{foo.tex|foo.png}}
fsdfds
=== fdsfds ===
123 test
sdffdsfds
</page>
<page name="Test:foo">
====== Foo ======
# This page is used among others for testing export
bar baz
[[foo:bar]]
[[http://foo.org/bar]]
[[mailto:foo@bar.org]]
[[foo@bar.org]]
[[/foo/bar.pdf]]
{{/foo/bar.pdf}}
[[~/foo/bar.pdf]]
{{~/foo/bar.pdf}}
===== Sub heading =====
dsfsdf
sdfsdf
</page>
<page name="Test:foo:bar">
= FOO Bar =
[[wIKi]]
[[test:foo]]
•• Search Me ••
</page>
<page name="Test:tags">
= Tags =
This page contains @tags in all kind of@places like the
@beginning of a line or its @end
but also after
@tabs i.e. within @verbatim blocks
within [[foo:bar|Link @captions]] as well as
* @enumerations
Not to forget within
== @Headings ==
and
=== Their last @word ===
And with a different @encoding
It also tests which weird @s!gns (sees only "s") and @num6ers @wit#in (aka
"wit") tags and tries hard to @cr@sh ("cr") the parser.
</page>
<page name="Test:Foo Bar:Dus Ja Hmm">
Testing with whitespace in page name
</page>
<page name="Test:Foo(Bar):Dus.Ja">
Testing with () and . in page name
</page>
<page name="roundtrip">
====== Head1 ======
===== Head 2 =====
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat
nulla pariatur. Excepteur sint occaecat cupidatat non proident,
sunt in culpa qui officia deserunt mollit anim id est laborum.
'''
Some Verbatim here
Indented and all: //foo//
'''
'''
Also block-indentation of verbatim is possible.
Even with additional per-line indentation
'''
IMAGE: {{../my-image.png?width=600|Foo Bar}}
LINKS: [[:foo:bar]] [[./file.png]] file:///etc/passwd
LINKS: [[Foo]][[Bar]]
IMAGELINK: {{my-image.png?href=Foo}}
IMAGELINK: {{../my-image.png?href=%3Afoo%3Abar&width=600|Foo Bar}}
TAGS: @foo @bar
Some indented
paragraphs go here ...
{{./equation003.png?type=equation}}
Let's try these **bold**, //italic//, __underline__ and ~~strike~~
And some ''//verbatim//'' with an indent halfway the paragraph
And don't forget these: *bold*, /italic/ / * *^%#@#$#!@)_!)_
A list
* foo
* ~~bar~~
* baz
And an indented list
* foo
* ~~bar~~
* baz
And a checkbox list
[ ] item 1
[*] sub item 1
* Some normal bullet
[x] sub item 2
[ ] sub item 3
[ ] item 2
[ ] item 3
[x] item FOOOOOO !
[>] Migrated checkbox
A numbered list:
1. foo
2. bar
a. sub list
b. here
3. hmmm
----
Some sub- and superscript like x^{2} and H_{2}O
====
This is not a header
That's all ...
</page>
<page name="utf8:αβγ">
Test 1 2 3
Test 1 2 3
</page>
<page name="utf8:בדיקה:טכניון">
Content-Type: text/x-zim-wiki
Wiki-Format: zim 0.26
Creation-Date: ×', 07 ×פר 2009 01:30:27 +0300
Modification-Date: ×', 07 ×פר 2009 01:30:27 +0300
====== Hello ======
Created שלישי 07 אפריל 2009
</page>
<page name="utf8:בדיקה:טכניון:מדעי המחשב">
Content-Type: text/x-zim-wiki
Wiki-Format: zim 0.26
Creation-Date: ×', 07 ×פר 2009 13:08:18 +0300
Modification-Date: ×', 07 ×פר 2009 13:10:08 +0300
====== מדעי המחשב ======
Created שלישי 07 אפריל 2009
שפת תכנות
אלגוריטמיים
</page>
<page name="utf8:בדיקה:טכניון:הנדסת מכונות">
Content-Type: text/x-zim-wiki
Wiki-Format: zim 0.26
Creation-Date: ×', 07 ×פר 2009 13:08:06 +0300
Modification-Date: ×', 07 ×פר 2009 13:09:28 +0300
====== הנדסת מכונות ======
Created שלישי 07 אפריל 2009
חדו"א
מד"ר
מכניקת מוצקים 2
A line in English, should be left aligned.
דינמיקה
</page>
<page name="utf8:中文">
Content-Type: text/x-zim-wiki
Wiki-Format: zim 0.4
Creation-Date: 2010-05-10T01:02:12.859000
====== 中文 ======
Created Monday 10 May 2010
this page title is chinese.
</page>
<page name="Linking:Foo:Bar">
Foo Bar !
[[Dus:Ja]]
</page>
<page name="Linking:Foo:Bar:Baz">
[[Bar]]
</page>
<page name="Linking:Dus">
Duss
</page>
<page name="Linking:Dus:Ja">
[[Linking:Foo:Bar]]
[[Dus]]
</page>
<page name="Parent">For page.menu template variable test</page>
<page name="Parent:Son">For page.menu template variable test</page>
<page name="Parent:Son:Grandson">For page.menu template variable test</page>
<page name="Parent:Son:Granddaughter">For page.menu template variable test</page>
<page name="Parent:Daughter">For page.menu template variable test</page>
<page name="Parent:Daughter:Grandson">For page.menu template variable test</page>
<page name="Parent:Daughter:Granddaughter">For page.menu template variable test</page>
<page name="Parent:Daughter:SomeOne:Foo">For page.menu template variable test</page>
<page name="Parent:Daughter:SomeOne:Bar">For page.menu template variable test</page>
<page name="Parent:Child:Grandchild">For page.menu template variable test</page>
<page name="Movers">Subpages will be moved</page>
<page name="Movers:Stator">Non-mover</page>
<page name="Movers:Stator:Mover">Move me</page>
<page name="Books:H2G2">
======= H2G2 ======
{{{card: type=Book
:Title: The Hitchikers Guide to the Galaxy
:Author: ?
:Publisher: THe Intergalactic publishing house
:Year: 2042
}}}
====== Comment ======
Please note the lettering on the front.
</page>
</pagelist>
|