galaaz 2.1.9 → 2.1.10.pre.2
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 +4 -4
- data/CHANGELOG.md +16 -0
- data/blogs/galaaz_2_0/_logo_before_body.html +3 -0
- data/blogs/galaaz_2_0/galaaz_2_0.md +2 -2
- data/blogs/galaaz_2_0/galaaz_2_0.tex +2 -2
- data/blogs/galaaz_ggplot/_logo_before_body.html +3 -0
- data/blogs/gknit/_logo_before_body.html +3 -0
- data/blogs/manual/_logo_before_body.html +3 -0
- data/blogs/nse_dplyr/_logo_before_body.html +3 -0
- data/blogs/oh_my/_logo_before_body.html +3 -0
- data/blogs/r_on_rails_ledger/_logo_before_body.html +3 -0
- data/blogs/ruby_plot/_logo_before_body.html +3 -0
- data/lib/galaaz/cli.rb +15 -1
- data/logos/icon-font/build_font.py +5 -5
- data/logos/icon-font/galaaz-mark.svg +2 -29
- data/script/omarchy/fonts/galaaz.ttf +0 -0
- data/script/omarchy/galaaz-add.sh +13 -2
- data/script/omarchy/install-galaaz.sh +1 -0
- data/script/omarchy/omarchy-menu.jsonc +2 -9
- data/version.rb +1 -1
- metadata +9 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d3daf3e8ef8a905c19d570fd83de8218821a904f02f7ac8adda498cb5c42a6a6
|
|
4
|
+
data.tar.gz: 0d9071b1b04999a690cbb3d748a1e09d84a98b021f143d5fe950a9324a5daeb5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6bbfb2c3bc020ef0768d7ba55754b8371ffd996f08c84d68396c5584449be24537550495bf3925c8ab3dc47aafd9a208de45a998f5ceee4e36f8d87d2bcaea4f
|
|
7
|
+
data.tar.gz: 5f7f357dc2e155e0934835d18aa5d6a2f8e61e985198ae39f6f4257d9073cb8cb91a3532ec3cccc9a687b3b4fa7f35696de2b51992cf3337ee0dc690469a8f00
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 2.1.10.pre.2
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- **gemspec**: `_logo_before_body.html` and `images/galaaz-lockup-stacked.png`
|
|
10
|
+
were excluded by the `.html`/`.png` filter — pandoc error 99 on Omarchy
|
|
11
|
+
after `gem install`. Blog asset whitelist now ensures these ship with the gem.
|
|
12
|
+
- **doctor**: checks sty assets (`galaaz-header.png`, `galaaz-headers-from-p3.tex`)
|
|
13
|
+
and per-blog knit assets (`_logo_before_body.html`, lockup PNG).
|
|
14
|
+
- Omarchy menu: install Knit also runs TeX (TinyTeX); removed Knit demo (oh_my)
|
|
15
|
+
entry; font install now runs `fc-cache -r` before refreshing `galaaz.ttf`.
|
|
16
|
+
|
|
17
|
+
## 2.1.10.pre.1
|
|
18
|
+
|
|
19
|
+
Prerelease of blog-asset / doctor fixes (superseded by 2.1.10.pre.2).
|
|
20
|
+
|
|
5
21
|
## 2.1.9
|
|
6
22
|
|
|
7
23
|
### Added
|
|
@@ -286,8 +286,8 @@ end
|
|
|
286
286
|
|
|
287
287
|
```
|
|
288
288
|
## R class: Table
|
|
289
|
-
## IPC in:
|
|
290
|
-
## IPC out:
|
|
289
|
+
## IPC in: galaaz_ipc_13052_2619c7e03eb6183f.arrow
|
|
290
|
+
## IPC out: galaaz_ipc_13052_d3c1ca403681a261.arrow
|
|
291
291
|
## g0 n=100 total=897 wsum=448.5
|
|
292
292
|
## g1 n=100 total=895 wsum=895.0
|
|
293
293
|
## g2 n=100 total=893 wsum=1339.5
|
|
@@ -604,8 +604,8 @@ reads row hashes. NewBridge only carries paths.
|
|
|
604
604
|
|
|
605
605
|
\begin{verbatim}
|
|
606
606
|
## R class: Table
|
|
607
|
-
## IPC in:
|
|
608
|
-
## IPC out:
|
|
607
|
+
## IPC in: galaaz_ipc_13052_591525d03a159b06.arrow
|
|
608
|
+
## IPC out: galaaz_ipc_13052_705dc9da0fdb2479.arrow
|
|
609
609
|
## g0 n=100 total=897 wsum=448.5
|
|
610
610
|
## g1 n=100 total=895 wsum=895.0
|
|
611
611
|
## g2 n=100 total=893 wsum=1339.5
|
data/lib/galaaz/cli.rb
CHANGED
|
@@ -270,6 +270,7 @@ module Galaaz
|
|
|
270
270
|
FileUtils.cp(src, dest)
|
|
271
271
|
puts "galaaz omarchy: #{dest} (family #{OMARCHY_FONT_FAMILY}, U+E900)"
|
|
272
272
|
if command_present?('fc-cache')
|
|
273
|
+
system('fc-cache', '-r')
|
|
273
274
|
system('fc-cache', '-f', fonts)
|
|
274
275
|
end
|
|
275
276
|
warn 'galaaz omarchy: restart the Omarchy shell so Qt picks up the galaaz font' \
|
|
@@ -342,8 +343,21 @@ module Galaaz
|
|
|
342
343
|
blogs = detect_blogs_dir
|
|
343
344
|
puts " blogs: #{blogs || '(not initialized)'}"
|
|
344
345
|
if blogs
|
|
345
|
-
|
|
346
|
+
sty_dir = File.join(File.dirname(blogs), 'sty')
|
|
347
|
+
sty = File.join(sty_dir, 'galaaz.sty')
|
|
346
348
|
puts " sty: #{File.file?(sty) ? sty : "MISSING (expected #{sty} for PDF blogs)"}"
|
|
349
|
+
%w[galaaz-header.png galaaz-headers-from-p3.tex].each do |name|
|
|
350
|
+
f = File.join(sty_dir, name)
|
|
351
|
+
puts " sty/#{name}: #{File.file?(f) ? 'OK' : 'MISSING (galaaz blogs init --force)'}"
|
|
352
|
+
end
|
|
353
|
+
# Check first blog for required knit assets
|
|
354
|
+
sample = File.join(blogs, BLOG_NAMES.first)
|
|
355
|
+
if File.directory?(sample)
|
|
356
|
+
logo_html = File.join(sample, '_logo_before_body.html')
|
|
357
|
+
logo_png = File.join(sample, 'images', 'galaaz-lockup-stacked.png')
|
|
358
|
+
puts " before_body: #{File.file?(logo_html) ? 'OK' : 'MISSING (galaaz blogs init --force)'}"
|
|
359
|
+
puts " lockup PNG: #{File.file?(logo_png) ? 'OK' : 'MISSING (galaaz blogs init --force)'}"
|
|
360
|
+
end
|
|
347
361
|
end
|
|
348
362
|
|
|
349
363
|
profiles = listed_profiles
|
|
@@ -39,7 +39,7 @@ def signed_area(pts) -> float:
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
def fix_hole_windings(glyph: TTGlyph) -> None:
|
|
42
|
-
"""TrueType: outer CW (area < 0), holes CCW (area > 0)."""
|
|
42
|
+
"""TrueType nonzero fill: outer CW (area < 0), holes CCW (area > 0)."""
|
|
43
43
|
if glyph.numberOfContours <= 0:
|
|
44
44
|
return
|
|
45
45
|
coords = list(glyph.coordinates)
|
|
@@ -53,10 +53,10 @@ def fix_hole_windings(glyph: TTGlyph) -> None:
|
|
|
53
53
|
pts = coords[start : end + 1]
|
|
54
54
|
fl = flags[start : end + 1]
|
|
55
55
|
area = signed_area(pts)
|
|
56
|
-
#
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
if
|
|
56
|
+
# Contour 0 = outer (CW); contour 1 = gem hole (CCW). Extra contours = CW fills.
|
|
57
|
+
want_cw = i != 1
|
|
58
|
+
is_cw = area < 0
|
|
59
|
+
if want_cw != is_cw:
|
|
60
60
|
pts = list(reversed(pts))
|
|
61
61
|
fl = list(reversed(fl))
|
|
62
62
|
new_coords.extend(pts)
|
|
@@ -1,34 +1,7 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!--
|
|
3
|
-
Monochrome Galaaz mark for the Omarchy menu icon font (menu-size silhouette).
|
|
4
|
-
Solid R with left top spur + diamond gem cutout (minimum-size spirit).
|
|
5
|
-
Straight segments only. Optical box ~150..880 in a 1000 viewBox.
|
|
6
|
-
-->
|
|
2
|
+
<!-- From logos/galaaz-minimum-size.png — solid R + ruby cutout (Omarchy menu glyph). -->
|
|
7
3
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" fill="#000">
|
|
8
4
|
<path fill-rule="evenodd" d="
|
|
9
|
-
M
|
|
10
|
-
H 500
|
|
11
|
-
L 620 150
|
|
12
|
-
L 700 230
|
|
13
|
-
L 720 340
|
|
14
|
-
L 700 450
|
|
15
|
-
L 620 520
|
|
16
|
-
L 530 545
|
|
17
|
-
L 760 880
|
|
18
|
-
H 580
|
|
19
|
-
L 400 560
|
|
20
|
-
H 320
|
|
21
|
-
V 880
|
|
22
|
-
H 200
|
|
23
|
-
V 280
|
|
24
|
-
H 160
|
|
25
|
-
V 150
|
|
26
|
-
Z
|
|
27
|
-
|
|
28
|
-
M 460 280
|
|
29
|
-
L 380 350
|
|
30
|
-
L 460 420
|
|
31
|
-
L 540 350
|
|
32
|
-
Z
|
|
5
|
+
M 457.1 672.3 L 390.1 672.1 L 390.1 654.5 L 381.1 654.2 L 381.1 614.2 L 390.1 613.8 L 390.1 587.3 L 483.9 587.2 L 504.1 606.9 L 618.9 494.0 L 567.2 401.3 L 441.0 401.3 L 424.6 430.4 L 390.3 430.4 L 390.1 354.4 L 582.5 354.2 L 582.9 363.2 L 609.4 363.2 L 609.7 372.2 L 627.3 372.2 L 627.5 380.9 L 636.2 381.1 L 636.4 389.9 L 645.2 390.1 L 645.4 398.8 L 654.3 399.2 L 654.3 416.8 L 663.3 417.1 L 663.3 443.6 L 672.3 444.0 L 672.3 492.9 L 663.3 493.3 L 663.3 519.8 L 654.3 520.2 L 654.3 537.7 L 645.6 537.9 L 645.4 546.7 L 636.6 546.8 L 636.4 555.6 L 627.5 556.0 L 627.5 578.0 L 636.2 578.2 L 636.4 587.0 L 645.4 587.3 L 645.4 604.9 L 654.2 605.1 L 654.3 613.8 L 663.1 614.0 L 663.3 622.8 L 672.3 623.2 L 672.3 640.7 L 681.0 640.9 L 681.2 649.7 L 690.2 650.1 L 690.2 663.1 L 587.3 663.3 L 587.2 654.5 L 578.4 654.3 L 578.2 645.6 L 569.4 645.4 L 569.1 636.4 L 466.4 636.4 L 466.2 663.1 L 457.4 663.3 L 457.1 672.3 Z M 470.1 573.7 L 390.3 573.7 L 390.1 515.7 L 411.2 515.5 L 470.1 573.7 Z
|
|
33
6
|
"/>
|
|
34
7
|
</svg>
|
|
Binary file
|
|
@@ -157,8 +157,19 @@ esac
|
|
|
157
157
|
|
|
158
158
|
echo "==> ${GALAAZ} add ${PROFILE}"
|
|
159
159
|
set +e
|
|
160
|
-
"${
|
|
161
|
-
|
|
160
|
+
if [[ "${PROFILE}" == "knit" ]]; then
|
|
161
|
+
"${GALAAZ}" add knit
|
|
162
|
+
st=$?
|
|
163
|
+
if [[ "${st}" -eq 0 ]]; then
|
|
164
|
+
echo
|
|
165
|
+
echo "==> ${GALAAZ} add tex (bundled with knit in Omarchy menu)"
|
|
166
|
+
"${GALAAZ}" add tex
|
|
167
|
+
st=$?
|
|
168
|
+
fi
|
|
169
|
+
else
|
|
170
|
+
"${GALAAZ}" add "${PROFILE}"
|
|
171
|
+
st=$?
|
|
172
|
+
fi
|
|
162
173
|
set -e
|
|
163
174
|
|
|
164
175
|
if [[ "${PROFILE}" == "knit" && "${st}" -eq 0 ]]; then
|
|
@@ -278,6 +278,7 @@ fi
|
|
|
278
278
|
if [[ -f "${SCRIPT_DIR}/fonts/galaaz.ttf" ]]; then
|
|
279
279
|
cp "${SCRIPT_DIR}/fonts/galaaz.ttf" "${HOME}/.local/share/fonts/galaaz/galaaz.ttf"
|
|
280
280
|
if command -v fc-cache >/dev/null 2>&1; then
|
|
281
|
+
fc-cache -r >/dev/null 2>&1 || true
|
|
281
282
|
fc-cache -f "${HOME}/.local/share/fonts/galaaz" >/dev/null 2>&1 || true
|
|
282
283
|
fi
|
|
283
284
|
log "menu font: ${HOME}/.local/share/fonts/galaaz/galaaz.ttf"
|
|
@@ -46,18 +46,11 @@
|
|
|
46
46
|
"install.development.galaaz.knit": {
|
|
47
47
|
"icon": "",
|
|
48
48
|
"iconFont": "galaaz",
|
|
49
|
-
"label": "Knit (HTML blogs)",
|
|
50
|
-
"description": "pandoc + knitr/rmarkdown",
|
|
49
|
+
"label": "Knit (HTML + PDF blogs)",
|
|
50
|
+
"description": "pandoc + knitr/rmarkdown + TinyTeX",
|
|
51
51
|
"action": "omarchy-launch-tui omarchy-galaaz-add knit",
|
|
52
52
|
"disabled": "test -f ~/.config/galaaz/profiles/knit"
|
|
53
53
|
},
|
|
54
|
-
"install.development.galaaz.knit-demo": {
|
|
55
|
-
"icon": "",
|
|
56
|
-
"label": "Knit demo (oh_my)",
|
|
57
|
-
"description": "gknit ~/galaaz-blogs/oh_my/oh_my.Rmd",
|
|
58
|
-
"action": "omarchy-launch-tui omarchy-galaaz-guide knit-demo",
|
|
59
|
-
"when": "test -f ~/.config/galaaz/profiles/knit"
|
|
60
|
-
},
|
|
61
54
|
"install.development.galaaz.arrow": {
|
|
62
55
|
"icon": "",
|
|
63
56
|
"iconFont": "galaaz",
|
data/version.rb
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
$gem_name = "galaaz"
|
|
2
|
-
$version="2.1.
|
|
2
|
+
$version="2.1.10.pre.2"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: galaaz
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.10.pre.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rodrigo Botafogo
|
|
@@ -124,11 +124,13 @@ files:
|
|
|
124
124
|
- bin/run_slow_rspec
|
|
125
125
|
- blogs/R-on-Rails-Planning-Document.md
|
|
126
126
|
- blogs/README.md
|
|
127
|
+
- blogs/galaaz_2_0/_logo_before_body.html
|
|
127
128
|
- blogs/galaaz_2_0/galaaz_2_0.Rmd
|
|
128
129
|
- blogs/galaaz_2_0/galaaz_2_0.md
|
|
129
130
|
- blogs/galaaz_2_0/galaaz_2_0.tex
|
|
130
131
|
- blogs/galaaz_2_0/images/galaaz-header.png
|
|
131
132
|
- blogs/galaaz_2_0/images/galaaz-lockup-stacked.png
|
|
133
|
+
- blogs/galaaz_ggplot/_logo_before_body.html
|
|
132
134
|
- blogs/galaaz_ggplot/galaaz_ggplot.Rmd
|
|
133
135
|
- blogs/galaaz_ggplot/galaaz_ggplot.md
|
|
134
136
|
- blogs/galaaz_ggplot/galaaz_ggplot.tex
|
|
@@ -141,6 +143,7 @@ files:
|
|
|
141
143
|
- blogs/galaaz_ggplot/images/galaaz-lockup-stacked.png
|
|
142
144
|
- blogs/galaaz_ggplot/midwest.Rmd
|
|
143
145
|
- blogs/galaaz_ggplot/midwest_external_png
|
|
146
|
+
- blogs/gknit/_logo_before_body.html
|
|
144
147
|
- blogs/gknit/gknit.Rmd
|
|
145
148
|
- blogs/gknit/gknit.md
|
|
146
149
|
- blogs/gknit/gknit.tex
|
|
@@ -153,6 +156,7 @@ files:
|
|
|
153
156
|
- blogs/gknit/lst.rds
|
|
154
157
|
- blogs/gknit/model.rb
|
|
155
158
|
- blogs/gknit/stats.bib
|
|
159
|
+
- blogs/manual/_logo_before_body.html
|
|
156
160
|
- blogs/manual/images/galaaz-lockup-stacked.png
|
|
157
161
|
- blogs/manual/include_model_local_repro.Rmd
|
|
158
162
|
- blogs/manual/include_model_local_repro.md
|
|
@@ -166,16 +170,19 @@ files:
|
|
|
166
170
|
- blogs/manual/manual_files/figure-markdown_github/bubble-1.png
|
|
167
171
|
- blogs/manual/manual_files/figure-markdown_github/diverging_bar.png
|
|
168
172
|
- blogs/manual/model.rb
|
|
173
|
+
- blogs/nse_dplyr/_logo_before_body.html
|
|
169
174
|
- blogs/nse_dplyr/images/galaaz-lockup-stacked.png
|
|
170
175
|
- blogs/nse_dplyr/nse_dplyr.Rmd
|
|
171
176
|
- blogs/nse_dplyr/nse_dplyr.md
|
|
172
177
|
- blogs/nse_dplyr/nse_dplyr.tex
|
|
178
|
+
- blogs/oh_my/_logo_before_body.html
|
|
173
179
|
- blogs/oh_my/images/galaaz-lockup-stacked.png
|
|
174
180
|
- blogs/oh_my/not_so.rb
|
|
175
181
|
- blogs/oh_my/oh_my.Rmd
|
|
176
182
|
- blogs/oh_my/oh_my.md
|
|
177
183
|
- blogs/oh_my/oh_my.tex
|
|
178
184
|
- blogs/oh_my/old.Rmd
|
|
185
|
+
- blogs/r_on_rails_ledger/_logo_before_body.html
|
|
179
186
|
- blogs/r_on_rails_ledger/images/00_portfolio_page.png
|
|
180
187
|
- blogs/r_on_rails_ledger/images/01_results_panel.png
|
|
181
188
|
- blogs/r_on_rails_ledger/images/02_density_tail_risk.png
|
|
@@ -185,6 +192,7 @@ files:
|
|
|
185
192
|
- blogs/r_on_rails_ledger/r_on_rails_ledger.Rmd
|
|
186
193
|
- blogs/r_on_rails_ledger/r_on_rails_ledger.md
|
|
187
194
|
- blogs/r_on_rails_ledger/r_on_rails_ledger.tex
|
|
195
|
+
- blogs/ruby_plot/_logo_before_body.html
|
|
188
196
|
- blogs/ruby_plot/images/galaaz-lockup-stacked.png
|
|
189
197
|
- blogs/ruby_plot/ruby_plot.Rmd
|
|
190
198
|
- blogs/ruby_plot/ruby_plot.md
|