erbook 9.0.0 → 9.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,19 +13,19 @@ Examples: Beispiele
13
13
  Failed!: Ausfallen!
14
14
  Figure: Abbildung
15
15
  Figures: Abbildungen
16
- Focus next segment: Folgendes Segment des Fokus
17
- Focus previous segment: Vorhergehendes Segment des Fokus
18
- Focus this segment: Fokussieren Sie dieses Segment
16
+ Here: Hier
19
17
  Important: Wichtig
20
18
  Importants: Importants
21
19
  Index: Index
22
20
  License: Lizenz
23
21
  Loading...: Laden…
22
+ Next: Zunächst
24
23
  Note: Anmerkung
25
24
  Notes: Anmerkungen
26
25
  Origin: Ursprung
27
26
  Part: Teil
28
27
  Please enable JavaScript in your Web browser.: Ermöglichen Sie bitte Javascript in Ihrem web browser.
28
+ Previous: Vorhergehend
29
29
  Printer friendly: Drucker freundlich
30
30
  Procedure: Verfahren
31
31
  Procedures: Verfahren
@@ -33,7 +33,6 @@ Ready!: Bereit!
33
33
  Reference: Hinweis
34
34
  References: Hinweise
35
35
  Resource: Hilfsmittel
36
- Return to listing: Gehen Sie zur Auflistung zurück
37
36
  Section: Abschnitt
38
37
  Table: Tabelle
39
38
  Tables: Tabellen
@@ -13,19 +13,19 @@ Examples: Παραδείγματα
13
13
  Failed!: Αποτυχημένος!
14
14
  Figure: Αριθμός
15
15
  Figures: Αριθμοί
16
- Focus next segment: Επόμενο τμήμα εστίασης
17
- Focus previous segment: Προηγούμενο τμήμα εστίασης
18
- Focus this segment: Στρέψτε αυτό το τμήμα
16
+ Here: Εδώ
19
17
  Important: Σημαντικός
20
18
  Importants: Importants
21
19
  Index: Δείκτης
22
20
  License: Άδεια
23
21
  Loading...: Φόρτωση…
22
+ Next: Έπειτα
24
23
  Note: Σημείωση
25
24
  Notes: Σημειώσεις
26
25
  Origin: Προέλευση
27
26
  Part: Μέρος
28
27
  Please enable JavaScript in your Web browser.: Παρακαλώ επιτρέψτε JavaScript στη μηχανή αναζήτησης Ιστού σας.
28
+ Previous: Προηγούμενος
29
29
  Printer friendly: Εκτυπωτής φιλικός
30
30
  Procedure: Διαδικασία
31
31
  Procedures: Διαδικασίες
@@ -33,7 +33,6 @@ Ready!: Έτοιμος!
33
33
  Reference: Αναφορά
34
34
  References: Αναφορές
35
35
  Resource: Πόρος
36
- Return to listing: Επιστροφή στη λίστα
37
36
  Section: Τμήμα
38
37
  Table: Πίνακας
39
38
  Tables: Πίνακες
@@ -13,19 +13,19 @@ Examples: Ejemplos
13
13
  Failed!: ¡Fallado!
14
14
  Figure: Figura
15
15
  Figures: Figuras
16
- Focus next segment: Segmento siguiente del foco
17
- Focus previous segment: Segmento anterior del foco
18
- Focus this segment: Enfoque este segmento
16
+ Here: Aquí
19
17
  Important: Importante
20
18
  Importants: Importants
21
19
  Index: Índice
22
20
  License: Licencia
23
21
  Loading...: Cargamento…
22
+ Next: Después
24
23
  Note: Nota
25
24
  Notes: Notas
26
25
  Origin: Origen
27
26
  Part: Parte
28
27
  Please enable JavaScript in your Web browser.: Permita por favor el Javascript en su web browser.
28
+ Previous: Anterior
29
29
  Printer friendly: Impresora amistosa
30
30
  Procedure: Procedimiento
31
31
  Procedures: Procedimientos
@@ -33,7 +33,6 @@ Ready!: ¡Listo!
33
33
  Reference: Referencia
34
34
  References: Referencias
35
35
  Resource: Recurso
36
- Return to listing: Vuelva al listado
37
36
  Section: Sección
38
37
  Table: Tabla
39
38
  Tables: Tablas
@@ -13,19 +13,19 @@ Examples: Exemples
13
13
  Failed!: Échoué !
14
14
  Figure: Figure
15
15
  Figures: Figures
16
- Focus next segment: Prochain segment de foyer
17
- Focus previous segment: Segment précédent de foyer
18
- Focus this segment: Focalisez ce segment
16
+ Here: Ici
19
17
  Important: Important
20
18
  Importants: Importants
21
19
  Index: Index
22
20
  License: Permis
23
21
  Loading...: Chargement…
22
+ Next: Après
24
23
  Note: Note
25
24
  Notes: Notes
26
25
  Origin: Origine
27
26
  Part: Partie
28
27
  Please enable JavaScript in your Web browser.: Veuillez permettre le Javascript dans votre web browser.
28
+ Previous: Précédent
29
29
  Printer friendly: Imprimeur amical
30
30
  Procedure: Procédé
31
31
  Procedures: Procédures
@@ -33,7 +33,6 @@ Ready!: Prêt !
33
33
  Reference: Référence
34
34
  References: Références
35
35
  Resource: Ressource
36
- Return to listing: Revenez à la liste
37
36
  Section: Section
38
37
  Table: Tableau
39
38
  Tables: Tableaux
@@ -13,19 +13,19 @@ Examples: Esempi
13
13
  Failed!: Venuto a mancare!
14
14
  Figure: Figura
15
15
  Figures: Figure
16
- Focus next segment: Segmento seguente del fuoco
17
- Focus previous segment: Segmento precedente del fuoco
18
- Focus this segment: Metta a fuoco questo segmento
16
+ Here: Qui
19
17
  Important: Importante
20
18
  Importants: Importants
21
19
  Index: Indice
22
20
  License: Autorizzazione
23
21
  Loading...: Caricamento…
22
+ Next: Dopo
24
23
  Note: Nota
25
24
  Notes: Note
26
25
  Origin: Origine
27
26
  Part: Parte
28
27
  Please enable JavaScript in your Web browser.: Permetta prego al Javascript nel vostro web browser.
28
+ Previous: Precedente
29
29
  Printer friendly: Stampatore amichevole
30
30
  Procedure: Procedura
31
31
  Procedures: Procedure
@@ -33,7 +33,6 @@ Ready!: Pronto!
33
33
  Reference: Riferimento
34
34
  References: Riferimenti
35
35
  Resource: Risorsa
36
- Return to listing: Rinvii all'elenco
37
36
  Section: Sezione
38
37
  Table: Tabella
39
38
  Tables: Tabelle
@@ -13,19 +13,19 @@ Examples: 例
13
13
  Failed!: 失敗する!
14
14
  Figure: 図
15
15
  Figures: 図
16
- Focus next segment: 焦点の次の区分
17
- Focus previous segment: 焦点の前の区分
18
- Focus this segment: この区分を集中しなさい
16
+ Here: ここに
19
17
  Important: 重要
20
18
  Importants: Importants
21
19
  Index: 索引
22
20
  License: 免許証
23
21
  Loading...: ローディング…
22
+ Next: 次に
24
23
  Note: ノート
25
24
  Notes: ノート
26
25
  Origin: 起源
27
26
  Part: 部分
28
27
  Please enable JavaScript in your Web browser.: あなたのウェブブラウザのJavaScriptを可能にしなさい。
28
+ Previous: 前
29
29
  Printer friendly: 友好的なプリンター
30
30
  Procedure: プロシージャ
31
31
  Procedures: プロシージャ
@@ -33,7 +33,6 @@ Ready!: 準備ができた!
33
33
  Reference: 参照
34
34
  References: 参照
35
35
  Resource: 資源
36
- Return to listing: リストへのリターン
37
36
  Section: セクション
38
37
  Table: テーブル
39
38
  Tables: テーブル
@@ -13,19 +13,19 @@ Examples: 보기
13
13
  Failed!: 실패한!
14
14
  Figure: 숫자
15
15
  Figures: 숫자
16
- Focus next segment: 초점 다음 세그먼트
17
- Focus previous segment: 초점 이전 세그먼트
18
- Focus this segment: 이 세그먼트를 집중시키십시오
16
+ Here: 여기에서
19
17
  Important: 중요한
20
18
  Importants: Importants
21
19
  Index: 색인
22
20
  License: 면허
23
21
  Loading...: 선적…
22
+ Next: 다음으로
24
23
  Note: 주
25
24
  Notes: 주
26
25
  Origin: 근원
27
26
  Part: 부분
28
27
  Please enable JavaScript in your Web browser.: 당신의 웹 브라우저에 있는 JavaScript를 가능하게 하십시오.
28
+ Previous: 이전
29
29
  Printer friendly: 친절한 인쇄 기계
30
30
  Procedure: 절차
31
31
  Procedures: 절차
@@ -33,7 +33,6 @@ Ready!: 준비되어 있는!
33
33
  Reference: 참고
34
34
  References: 참고
35
35
  Resource: 자원
36
- Return to listing: 명부작성에 반환
37
36
  Section: 단면도
38
37
  Table: 테이블
39
38
  Tables: 테이블
@@ -13,19 +13,19 @@ Examples: Voorbeelden
13
13
  Failed!: Ontbroken!
14
14
  Figure: Cijfer
15
15
  Figures: Cijfers
16
- Focus next segment: Het volgende segment van de nadruk
17
- Focus previous segment: Het vorige segment van de nadruk
18
- Focus this segment: Concentreer dit segment
16
+ Here: Hier
19
17
  Important: Belangrijk
20
18
  Importants: Importants
21
19
  Index: Index
22
20
  License: Vergunning
23
21
  Loading...: Het laden…
22
+ Next: Daarna
24
23
  Note: Nota
25
24
  Notes: Nota's
26
25
  Origin: Oorsprong
27
26
  Part: Deel
28
27
  Please enable JavaScript in your Web browser.: Gelieve te laten JavaScript in uw browser van het Web toe.
28
+ Previous: Vorig
29
29
  Printer friendly: Vriendschappelijke printer
30
30
  Procedure: Procedure
31
31
  Procedures: Procedures
@@ -33,7 +33,6 @@ Ready!: Klaar!
33
33
  Reference: Verwijzing
34
34
  References: Verwijzingen
35
35
  Resource: Middel
36
- Return to listing: Terugkeer naar lijst
37
36
  Section: Sectie
38
37
  Table: Lijst
39
38
  Tables: Lijsten
@@ -12,19 +12,19 @@ Examples:
12
12
  Failed!:
13
13
  Figure:
14
14
  Figures:
15
- Focus next segment:
16
- Focus previous segment:
17
- Focus this segment:
15
+ Here:
18
16
  Important:
19
17
  Importants:
20
18
  Index:
21
19
  License:
22
20
  Loading...:
21
+ Next:
23
22
  Note:
24
23
  Notes:
25
24
  Origin:
26
25
  Part:
27
26
  Please enable JavaScript in your Web browser.:
27
+ Previous:
28
28
  Printer friendly:
29
29
  Procedure:
30
30
  Procedures:
@@ -32,7 +32,6 @@ Ready!:
32
32
  Reference:
33
33
  References:
34
34
  Resource:
35
- Return to listing:
36
35
  Section:
37
36
  Table:
38
37
  Tables:
@@ -13,19 +13,19 @@ Examples: Exemplos
13
13
  Failed!: Falhado!
14
14
  Figure: Figura
15
15
  Figures: Figuras
16
- Focus next segment: Segmento seguinte do foco
17
- Focus previous segment: Segmento precedente do foco
18
- Focus this segment: Focalize este segmento
16
+ Here: Aqui
19
17
  Important: Importante
20
18
  Importants: Importants
21
19
  Index: Índice
22
20
  License: Licença
23
21
  Loading...: Carregamento…
22
+ Next: Em seguida
24
23
  Note: Nota
25
24
  Notes: Notas
26
25
  Origin: Origem
27
26
  Part: Parte
28
27
  Please enable JavaScript in your Web browser.: Permita por favor o Javascript em seu web browser.
28
+ Previous: Precedente
29
29
  Printer friendly: Impressora amigável
30
30
  Procedure: Procedimento
31
31
  Procedures: Procedimentos
@@ -33,7 +33,6 @@ Ready!: Pronto!
33
33
  Reference: Referência
34
34
  References: Referências
35
35
  Resource: Recurso
36
- Return to listing: Retorne à lista
37
36
  Section: Seção
38
37
  Table: Tabela
39
38
  Tables: Tabelas
@@ -13,19 +13,19 @@ Examples: Примеры
13
13
  Failed!: Неудачно!
14
14
  Figure: Диаграмма
15
15
  Figures: Диаграммы
16
- Focus next segment: Этап фокуса следующий
17
- Focus previous segment: Этап фокуса предыдущий
18
- Focus this segment: Сфокусируйте этот этап
16
+ Here: Здесь
19
17
  Important: Важно
20
18
  Importants: Importants
21
19
  Index: Индекс
22
20
  License: Лицензия
23
21
  Loading...: Нагрузка…
22
+ Next: Затем
24
23
  Note: Примечание
25
24
  Notes: Примечания
26
25
  Origin: Начало
27
26
  Part: Часть
28
27
  Please enable JavaScript in your Web browser.: Пожалуйста включите яваскрипт в вашем браузере паутины.
28
+ Previous: Предыдуще
29
29
  Printer friendly: Принтер содружественный
30
30
  Procedure: Процедура
31
31
  Procedures: Процедуры
@@ -33,7 +33,6 @@ Ready!: Готово!
33
33
  Reference: Справка
34
34
  References: Справки
35
35
  Resource: Ресурс
36
- Return to listing: Возвратите к перечислению
37
36
  Section: Раздел
38
37
  Table: Таблица
39
38
  Tables: Таблицы
@@ -13,19 +13,19 @@ Examples: 例子
13
13
  Failed!: 不合格!
14
14
  Figure: 图
15
15
  Figures: 图
16
- Focus next segment: 焦点下段
17
- Focus previous segment: 焦点早先段
18
- Focus this segment: 聚焦这段
16
+ Here: 这里
19
17
  Important: 重要
20
18
  Importants: Importants
21
19
  Index: 索引
22
20
  License: 执照
23
21
  Loading...: 装货…
22
+ Next: 其次
24
23
  Note: 笔记
25
24
  Notes: 笔记
26
25
  Origin: 起源
27
26
  Part: 部分
28
27
  Please enable JavaScript in your Web browser.: 请使能在您的浏览器的Java语言。
28
+ Previous: 早先
29
29
  Printer friendly: 友好的打印机
30
30
  Procedure: 做法
31
31
  Procedures: 做法
@@ -33,7 +33,6 @@ Ready!: 准备好!
33
33
  Reference: 参考
34
34
  References: 参考
35
35
  Resource: 资源
36
- Return to listing: 回到目录
37
36
  Section: 部分
38
37
  Table: 表
39
38
  Tables: 表
@@ -13,19 +13,19 @@ Examples: 例子
13
13
  Failed!: 不合格!
14
14
  Figure: 图
15
15
  Figures: 图
16
- Focus next segment: 焦點下段
17
- Focus previous segment: 焦點早先段
18
- Focus this segment: 聚焦這段
16
+ Here: 這裡
19
17
  Important: 重要
20
18
  Importants: Importants
21
19
  Index: 索引
22
20
  License: 執照
23
21
  Loading...: 裝貨…
22
+ Next: 其次
24
23
  Note: 筆記
25
24
  Notes: 筆記
26
25
  Origin: 起源
27
26
  Part: 部分
28
27
  Please enable JavaScript in your Web browser.: 請使能在您的瀏覽器的Java語言。
28
+ Previous: 早先
29
29
  Printer friendly: 友好的打印機
30
30
  Procedure: 做法
31
31
  Procedures: 做法
@@ -33,7 +33,6 @@ Ready!: 準備好!
33
33
  Reference: 參考
34
34
  References: 參考
35
35
  Resource: 資源
36
- Return to listing: 回到目錄
37
36
  Section: 部分
38
37
  Table: 表
39
38
  Tables: 表
@@ -9,8 +9,8 @@ require 'inochi'
9
9
 
10
10
  Inochi.init :ERBook,
11
11
  :program => 'erbook',
12
- :version => '9.0.0',
13
- :release => '2009-10-18',
12
+ :version => '9.1.0',
13
+ :release => '2009-11-03',
14
14
  :website => 'http://snk.tuxfamily.org/lib/erbook/',
15
15
  :tagline => 'Write books, manuals, and documents in eRuby',
16
16
  :require => {
@@ -114,8 +114,10 @@ class String
114
114
  gsub %r{<(code)(.*?)>(.*?)</\1>}m do
115
115
  elem, atts, code = $1, $2, CGI.unescapeHTML($3).sub(/\A\r?\n/, '')
116
116
 
117
- lang = atts[/\blang=('|")(.*?)\1/i, 2]
117
+ lang_regexp = /\blang=('|")(.*?)\1/io
118
+ lang = atts[lang_regexp, 2]
118
119
  lang = :ruby if lang !~ /\S/
120
+ atts.sub! lang_regexp, %{lang="#{lang}"}
119
121
 
120
122
  body = CodeRay.scan(code, lang).html(:css => :style)
121
123
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erbook
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.0.0
4
+ version: 9.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Suraj N. Kurapati
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-18 00:00:00 -07:00
12
+ date: 2009-11-03 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -92,8 +92,9 @@ dependencies:
92
92
  - !ruby/object:Gem::Version
93
93
  version: "1"
94
94
  version:
95
- description: " Version 9.0.0 (2009-10-18)\n\n This release adds new nodes to the XHTML format, reduces the\n size of generated XHTML documents and also improves their\n usability and validity.\n\n * [1]Incompatible changes\n\n * [2]New features\n\n * [3]Bug fixes\n\n * [4]Housekeeping\n\n Incompatible changes\n\n * The String#to_inline_xhtml method has been removed. Use\n the String#to_xhtml method, which now returns inline\n XHTML, instead.\n\n New features\n\n * Add \"text\" and \"code\" nodes for <pre> and <code>.\n\n * Add \"chain\" parameter to [5]XHTML node definitions.\n\n * Add [6]command! floats for listing shell commands and\n their output.\n\n * Reduce XHTML output size by activating image data URIs at\n runtime using JavaScript. Previously, data URIs were\n emitted into XHTML at compile time.\n\n * Upgrade from XHTML 1.0 Transitional to Strict.\n\n Bug fixes\n\n * Add support for [7]multiple tab rows in jQuery UI tab\n bars.\n\n * Auto-detected mime types were inserted incorrectly in\n base64 embeds.\n\n * Prevent block-level children of <ins> from appearing\n underlined on screen (Opera browsers) and in print\n (Microsoft browsers).\n\n * <blockquote/> icon did not appear in print style.\n\n * Prevent mini navigation menus from colliding.\n\n Housekeeping\n\n * Remove the need for highlighting scroll target by setting\n body height so that any element can be brought to the top\n of the screen via scrolling.\n\n * Place mini navigation menus on jQuery UI tab bars when\n possible.\n\n * Show logo image in full and centered above document\n header.\n\n * Completely remove <p> around block-level child (added by\n Markdown).\n\n * Fix XHTML validation errors on <table>, <tfoot>, <img> in\n RDoc strings, and output of syntax coloring library.\n\n * DRY up XHTML node definitions using YAML hash merging\n operator.\n\n\
96
- References\n\n 1. http://snk.tuxfamily.org/lib/erbook/#Incompatible-changes\n 2. http://snk.tuxfamily.org/lib/erbook/#New-features\n 3. http://snk.tuxfamily.org/lib/erbook/#Bug-fixes\n 4. http://snk.tuxfamily.org/lib/erbook/#Housekeeping\n 5. http://snk.tuxfamily.org/lib/erbook/#xhtml-nodes\n 6. http://snk.tuxfamily.org/lib/erbook/#xhtml-nodes-command\n 7. http://dev.jqueryui.com/ticket/4882\n"
95
+ description: " ERBook 9.1.0\n\n Write books, manuals, and documents in eRuby\n\n http://snk.tuxfamily.org/lib/erbook/\n\n ERBook is an extensible document processor that emits [1]any\n document you can imagine from [2]eRuby templates, which allow\n scripting and dynamic content generation.\n\n\
96
+ Version 9.1.0 (2009-11-03)\n\n This release adds JavaScript-based search functionality,\n improves usability, and fixes some bugs--all in the XHTML\n format.\n\n New features\n\n * Add JavaScript-based search functionality to XHTML\n format.\n\n * Make paragraph nodes flow with the body (don't put tabs\n around them).\n\n * Make external hyperlinks open in a separate window.\n\n * Make \"Printer friendly\" label clickable like the\n checkbox.\n\n Bug fixes\n\n * The first character of a URI fragment can be an\n underscore, according to the W3C XHTML 1.0 Strict\n validator!.\n\n * Scroll to nearest visible element if scroll target is\n naturally hidden (e.g. because of a CSS rule).\n\n * Prevent scroll animation callback from being called\n twice.\n\n * Do not show \"Loading... failed\" message in text-only web\n browsers.\n\n * Fix empty \"lang\" attributes on the output of the syntax\n coloring library.\n\n Housekeeping\n\n * Rename the IDs of core XHTML structures to be\n self-documenting.\n\n * Shorten mini navigation link labels for text-only web\n browsers.\n\n * Refactor JavaScript according to JSLint suggestions.\n\n * Project license was not being emitted into JavaScript\n code.\n\n\
97
+ References\n\n 1. http://snk.tuxfamily.org/lib/erbook/#HelloWorld\n 2. http://en.wikipedia.org/wiki/ERuby\n"
97
98
  email: sunaku@gmail.com
98
99
  executables:
99
100
  - erbook