ulmul 0.8.0 → 0.8.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d98397029e09b8f620ee2e4cb2ae5e8c58f5bb0c0785e7740e0d140ec370661
4
- data.tar.gz: 0b756285e3973867c9a6312699f2436673d369b00b6ac2743394594125a3c66c
3
+ metadata.gz: 0ed2f72500a15798183862600970098cd9264af7809a47cfcbdbdcf90c0efde7
4
+ data.tar.gz: 3b2a07e61dee38a54554a7fa2c53afead397463727ae1023186dfd4a4f1d523a
5
5
  SHA512:
6
- metadata.gz: af1edfafd8a72c3dc02e93b9806d0704250feb13f001284aea985a26a65e482f0ab11e0d8e3e5abf3c15a50f61cef8df1b546f9582065c380e373c9ec029b1d5
7
- data.tar.gz: ac5c60e4198a88ecfbc897d611776abef5da4bab6660b5cf85552d1f308c655f0e93b59df329340350c34808301170d8c1e4db90b4e7c555a381d825b57a8d35
6
+ metadata.gz: fef674e5f435c9be22d69025f75d123ec5fd8d9278360148ced022d2c2109f40e8f4e4416cd28eb1a70be02566f212e11083a4cfa1f335b7ba899425b58c7eab
7
+ data.tar.gz: ef3cd59466a1dc84736fef742d7c4d13055a897a406577d73ec90d7a158f78dc20dbebeab1b4d8a9fad4cd5062a5a4f3058ae3d6575f20a698bd9229fd824f68
data/Changes CHANGED
@@ -1,4 +1,7 @@
1
1
  = Changes in each version
2
+ == 0.8.1
3
+ * All equations have numberings.
4
+
2
5
  == 0.8.0
3
6
  * Now ulmul2html5 can read GFM tables in files and write HTML tables.
4
7
 
data/index.en.html CHANGED
@@ -195,7 +195,7 @@ Output:
195
195
  </p>
196
196
  <p>
197
197
  Mass <math xmlns='http://www.w3.org/1998/Math/MathML' display='inline'><mi>m</mi></math> can be converted into energy <math xmlns='http://www.w3.org/1998/Math/MathML' display='inline'><mi>E</mi></math> as
198
- <math id="Eq:Emc2" xmlns='http://www.w3.org/1998/Math/MathML' display='block'><mi>E</mi><mo stretchy='false'>=</mo><mi>m</mi><msup><mi>c</mi><mn>2</mn></msup><mo stretchy='false'>.</mo></math>
198
+ <math id="Eq:Emc2" xmlns='http://www.w3.org/1998/Math/MathML' display='block'><mi>E</mi><mo stretchy='false'>=</mo><mi>m</mi><msup><mi>c</mi><mn>2</mn></msup><mo stretchy='false'>.</mo><ms class="eqno">(1)</ms></math>
199
199
  </p>
200
200
  <p>
201
201
  You can refer the equation in a way like "Eq:Einstein", as <a href="#Eq:Emc2">Eq. (1)</a>.
data/index.ja.html CHANGED
@@ -204,7 +204,7 @@ Mass $m$ can be converted into energy $E$ as
204
204
  </p>
205
205
  <p>
206
206
  Mass <math xmlns='http://www.w3.org/1998/Math/MathML' display='inline'><mi>m</mi></math> can be converted into energy <math xmlns='http://www.w3.org/1998/Math/MathML' display='inline'><mi>E</mi></math> as
207
- <math id="Eq:Emc2" xmlns='http://www.w3.org/1998/Math/MathML' display='block'><mi>E</mi><mo stretchy='false'>=</mo><mi>m</mi><msup><mi>c</mi><mn>2</mn></msup><mo stretchy='false'>.</mo></math>
207
+ <math id="Eq:Emc2" xmlns='http://www.w3.org/1998/Math/MathML' display='block'><mi>E</mi><mo stretchy='false'>=</mo><mi>m</mi><msup><mi>c</mi><mn>2</mn></msup><mo stretchy='false'>.</mo><ms class="eqno">(1)</ms></math>
208
208
  </p>
209
209
  <p>
210
210
  数式は"Eq:Einstein"のように参照します。こんなかんじ<a href="#Eq:Emc2">Eq. (1)</a>。
data/lib/ulmul.rb CHANGED
@@ -90,7 +90,7 @@ end
90
90
  class Ulmul
91
91
  include AASM
92
92
  include Itemize
93
- VERSION = '0.8.0'
93
+ VERSION = '0.8.1'
94
94
 
95
95
  aasm.initial_state :st_ground
96
96
 
@@ -373,7 +373,9 @@ module HTML
373
373
 
374
374
  def cb_equation_end2()
375
375
  if $0 == __FILE__ || /ulmul2(html5|xhtml)$/ =~ $0
376
- @body << @equation_contents.to_mathml('block').to_s.sub(/<math /,"<math id=\"#{@equation_label}\" ") << "\n"
376
+ @body << @equation_contents.to_mathml('block').to_s.
377
+ sub(/<math /,"<math id=\"#{@equation_label}\" ").
378
+ sub(/<\/math>/, "<ms class=\"eqno\">(#{@equations.length})</ms></math>") << "\n"
377
379
  elsif /ulmul2mathjax$/ =~ $0
378
380
  @body << "<div id=\"#{@equation_label}\">\n\\begin{equation}\n" << @equation_contents << " \\tag{#{@equations.length}}\n" << "\\end{equation}\n</div>\n"
379
381
  end
data/ulmul2html5.css CHANGED
@@ -1,6 +1,5 @@
1
1
  /* -*-CSS-*-
2
2
  * style.css for index.??.html of ulmul
3
- * Time-stamp: <2026-01-09 19:28:07 takeshi>
4
3
  * Author: Takeshi NISHIMATSU
5
4
  */
6
5
  body
@@ -92,6 +91,11 @@ table {
92
91
  margin: auto;
93
92
  }
94
93
 
94
+
95
+ .eqno {
96
+ margin-left: 2.0rem;
97
+ }
98
+
95
99
  div.navi { text-align: right;
96
100
  margin-right: 1.0em; }
97
101
 
data/ulmul2xhtml.css CHANGED
@@ -1,6 +1,5 @@
1
1
  /* -*-CSS-*-
2
2
  * style.css for index.??.html of ulmul
3
- * Time-stamp: <2026-01-09 19:32:55 takeshi>
4
3
  * Author: Takeshi NISHIMATSU
5
4
  */
6
5
  body
@@ -95,6 +94,10 @@ table {
95
94
  margin: auto;
96
95
  }
97
96
 
97
+ .eqno {
98
+ margin-left: 2rem;
99
+ }
100
+
98
101
  div.navi { text-align: right;
99
102
  margin-right: 1.0em; }
100
103
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ulmul
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takeshi Nishimatsu