forked from GitHub/gf-core
Fix linking to chapters in gf-tutorial; Remove reference to Htmls.
This commit is contained in:
@@ -23,7 +23,7 @@ function render_t2t_html {
|
|||||||
--infile="$t2t"
|
--infile="$t2t"
|
||||||
|
|
||||||
# Replace <A NAME="toc3"></A> with <div id="toc3"></div> so that Pandoc retains it
|
# Replace <A NAME="toc3"></A> with <div id="toc3"></div> so that Pandoc retains it
|
||||||
sed -i.bak "s/<A NAME=\"\(.*\)\"><\/A>/<div id=\"\1\"><\/div>/" "$tmp" && rm "$tmp.bak"
|
sed -i.bak "s/<(a|A) (name|NAME)=\"\(.*\)\"><\/(a|A)>/<div id=\"\1\"><\/div>/" "$tmp" && rm "$tmp.bak"
|
||||||
|
|
||||||
# Capture first 3 lines of t2t file: title, author, date
|
# Capture first 3 lines of t2t file: title, author, date
|
||||||
# Documentation here: https://txt2tags.org/userguide/headerarea
|
# Documentation here: https://txt2tags.org/userguide/headerarea
|
||||||
|
|||||||
@@ -618,32 +618,32 @@ and **semantic definitions**.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#NEW
|
% #NEW
|
||||||
|
%
|
||||||
==Slides==
|
% ==Slides==
|
||||||
|
%
|
||||||
You can chop this tutorial into a set of slides by the command
|
% You can chop this tutorial into a set of slides by the command
|
||||||
```
|
% ```
|
||||||
htmls gf-tutorial.html
|
% htmls gf-tutorial.html
|
||||||
```
|
% ```
|
||||||
where the program ``htmls`` is distributed with GF (see below), in
|
% where the program ``htmls`` is distributed with GF (see below), in
|
||||||
|
%
|
||||||
[``GF/src/tools/Htmls.hs`` http://grammaticalframework.org/src/tools/Htmls.hs]
|
% [``GF/src/tools/Htmls.hs`` http://grammaticalframework.org/src/tools/Htmls.hs]
|
||||||
|
%
|
||||||
The slides will appear as a set of files beginning with ``01-gf-tutorial.htmls``.
|
% The slides will appear as a set of files beginning with ``01-gf-tutorial.htmls``.
|
||||||
|
%
|
||||||
Internal links will not work in the slide format, except for those in the
|
% Internal links will not work in the slide format, except for those in the
|
||||||
upper left corner of each slide, and the links behind the "Contents" link.
|
% upper left corner of each slide, and the links behind the "Contents" link.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#NEW
|
#NEW
|
||||||
|
|
||||||
|
#Lchaptwo
|
||||||
|
|
||||||
=Lesson 1: Getting Started with GF=
|
=Lesson 1: Getting Started with GF=
|
||||||
|
|
||||||
|
|
||||||
#Lchaptwo
|
|
||||||
|
|
||||||
Goals:
|
Goals:
|
||||||
- install and run GF
|
- install and run GF
|
||||||
- write the first GF grammar: a "Hello World" grammar in three languages
|
- write the first GF grammar: a "Hello World" grammar in three languages
|
||||||
@@ -1037,9 +1037,10 @@ Application programs, using techniques from #Rchapeight:
|
|||||||
|
|
||||||
#NEW
|
#NEW
|
||||||
|
|
||||||
|
#Lchapthree
|
||||||
|
|
||||||
=Lesson 2: Designing a grammar for complex phrases=
|
=Lesson 2: Designing a grammar for complex phrases=
|
||||||
|
|
||||||
#Lchapthree
|
|
||||||
|
|
||||||
Goals:
|
Goals:
|
||||||
- build a larger grammar: phrases about food in English and Italian
|
- build a larger grammar: phrases about food in English and Italian
|
||||||
@@ -1797,9 +1798,10 @@ where
|
|||||||
|
|
||||||
#NEW
|
#NEW
|
||||||
|
|
||||||
|
#Lchapfour
|
||||||
|
|
||||||
=Lesson 3: Grammars with parameters=
|
=Lesson 3: Grammars with parameters=
|
||||||
|
|
||||||
#Lchapfour
|
|
||||||
|
|
||||||
Goals:
|
Goals:
|
||||||
- implement sophisticated linguistic structures:
|
- implement sophisticated linguistic structures:
|
||||||
@@ -2772,9 +2774,10 @@ Thus
|
|||||||
|
|
||||||
#NEW
|
#NEW
|
||||||
|
|
||||||
|
#Lchapfive
|
||||||
|
|
||||||
=Lesson 4: Using the resource grammar library=
|
=Lesson 4: Using the resource grammar library=
|
||||||
|
|
||||||
#Lchapfive
|
|
||||||
|
|
||||||
Goals:
|
Goals:
|
||||||
- navigate in the GF resource grammar library and use it in applications
|
- navigate in the GF resource grammar library and use it in applications
|
||||||
@@ -3614,9 +3617,10 @@ tenses and moods, e.g. the Romance languages.
|
|||||||
|
|
||||||
#NEW
|
#NEW
|
||||||
|
|
||||||
|
#Lchapsix
|
||||||
|
|
||||||
=Lesson 5: Refining semantics in abstract syntax=
|
=Lesson 5: Refining semantics in abstract syntax=
|
||||||
|
|
||||||
#Lchapsix
|
|
||||||
|
|
||||||
Goals:
|
Goals:
|
||||||
- include semantic conditions in grammars, by using
|
- include semantic conditions in grammars, by using
|
||||||
@@ -4177,11 +4181,11 @@ Type checking can be invoked with ``put_term -transform=solve``.
|
|||||||
|
|
||||||
#NEW
|
#NEW
|
||||||
|
|
||||||
|
#Lchapseven
|
||||||
|
|
||||||
==Lesson 6: Grammars of formal languages==
|
==Lesson 6: Grammars of formal languages==
|
||||||
|
|
||||||
|
|
||||||
#Lchapseven
|
|
||||||
|
|
||||||
Goals:
|
Goals:
|
||||||
- write grammars for formal languages (mathematical notation, programming languages)
|
- write grammars for formal languages (mathematical notation, programming languages)
|
||||||
- interface between formal and natural langauges
|
- interface between formal and natural langauges
|
||||||
@@ -4516,9 +4520,10 @@ point literals as arguments.
|
|||||||
|
|
||||||
#NEW
|
#NEW
|
||||||
|
|
||||||
|
#Lchapeight
|
||||||
|
|
||||||
=Lesson 7: Embedded grammars=
|
=Lesson 7: Embedded grammars=
|
||||||
|
|
||||||
#Lchapeight
|
|
||||||
|
|
||||||
Goals:
|
Goals:
|
||||||
- use grammars as parts of programs written in Haskell and JavaScript
|
- use grammars as parts of programs written in Haskell and JavaScript
|
||||||
|
|||||||
Reference in New Issue
Block a user