#!/bin/sh
#
# PlanFacile (Easy plan, in french) is a small tool to help people to
# write a document on a particular subject.
# Copyright (C) 2005  Julien BRUGUIER
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
#

echo '#start{0}#head{Hello world !}' | planfacile
echo '#start{0}#foot{world !}#head{Hello }' | planfacile
echo '#start{0}#head{Hello #dest# !}#define{dest}{world}' | planfacile
echo '#start{0}#head{Hello #options{Destinataire}#case{fr}monde #case{jp}sekai #other world #end !}' | planfacile
echo '#section{0}{}{#txt}{}{}{}#idea{hw}#text Hello world !#end' | planfacile
echo '#section{0}{}{#txt}{}{}{}#section{1}{}{#txt}{}{}{}#idea{h}#text Hello #end#idea{w}#text world #dep{h}{}{}#end#idea{!}#text#dep{0xCAFE}{h}{}{}!#dep{w}{}{}#end' | planfacile
#echo '#section{0}{}{#txt}{}{}{}#section{1}{}{#txt}{}{}{}#idea{h}#text Hello #end#idea{w}#text world !#dep{h}{}{}#end#generic{g}#text#end' | planfacile
echo '#idea{w}#text world !#dep{h}{}{}#end#section{1}{}{#txt}{}{}{}#generic{#index}#text#end#section{0}{}{#txt}{}{}{}#idea{h}#text Hello #end' | planfacile
echo '#idea{o}#text#dep{1}{e}{}{}#dep{l}{}{}#end#define{d}{#dep{1}{#1}{}{#1}}#idea{!}#text#dep{1}{r}{}{}#dep{d}{}{}#end#idea{d}#text#dep{2}{r}{}{}#d{# }#end#idea{H}#text#end#idea{l}#text#dep{2}{e}{}{}#d{l}#end#foot{}#idea{# }#text#dep{o}{}{}#end#section{}{#ref#txt}{}{}{}#idea{w}#text#d{o}#dep{# }{}{}#end#idea{e}#text#dep{H}{}{}#end#start{0}#idea{r}#text#dep{2}{H}{}{}#d{l}#end' | planfacile
echo '#define{d}{r}#define{r}{H#2#1#H#define{r}{#1#1}}#H{#h{#r{#r{#e}#define{H}{#l}}{e}}{#define{d}{# }!}{#h{#l}{#o}{#w{w}}#e#define{h}{#3#define{o}{r}#1#2}#w{d}{#d}#define{w}{#0}}#define{h}{#1#d#3#2}#define{e}{l}}#start{0}#define{H}{#foot{#1#define{l}{o}}}' | planfacile
