Skip to content

Commit

Permalink
1.3 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
cormullion committed Feb 25, 2024
1 parent 6bedb71 commit 53d2a8d
Show file tree
Hide file tree
Showing 14 changed files with 352 additions and 136 deletions.
44 changes: 35 additions & 9 deletions .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,45 @@
name: CompatHelper

on:
schedule:
- cron: '00 00 * * *'

- cron: 0 0 * * *
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
CompatHelper:
runs-on: ubuntu-latest
steps:
- uses: julia-actions/setup-julia@latest
- name: Check if Julia is already available in the PATH
id: julia_in_path
run: which julia
continue-on-error: true
- name: Install Julia, but only if it is not already available in the PATH
uses: julia-actions/setup-julia@v1
with:
version: 1.3
- name: Pkg.add("CompatHelper")
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
- name: CompatHelper.main()
version: '1'
arch: ${{ runner.arch }}
if: steps.julia_in_path.outcome != 'success'
- name: "Add the General registry via Git"
run: |
import Pkg
ENV["JULIA_PKG_SERVER"] = ""
Pkg.Registry.add("General")
shell: julia --color=yes {0}
- name: "Install CompatHelper"
run: |
import Pkg
name = "CompatHelper"
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
version = "3"
Pkg.add(; name, uuid, version)
shell: julia --color=yes {0}
- name: "Run CompatHelper"
run: |
import CompatHelper
CompatHelper.main()
shell: julia --color=yes {0}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: julia -e 'using CompatHelper; CompatHelper.main()'
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
# COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }}
10 changes: 8 additions & 2 deletions .github/workflows/TagBot.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
name: TagBot
on:
schedule:
- cron: 0 * * * *
issue_comment: # THIS BIT IS NEW
types:
- created
workflow_dispatch:
jobs:
TagBot:
# THIS 'if' LINE IS NEW
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
# NOTHING BELOW HAS CHANGED
runs-on: ubuntu-latest
steps:
- uses: JuliaRegistries/TagBot@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
ssh: ${{ secrets.DOCUMENTER_KEY }}
15 changes: 8 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,26 @@ jobs:
fail-fast: false
matrix:
julia-version:
- "1.3"
- "1"
- "1.9"
- "1" # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia
- "nightly"
os:
- ubuntu-latest
- macos-latest
- windows-latest
julia-arch:
- x64
- x86
exclude:
- os: macOS-latest
julia-arch: x86

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-arch }}
- uses: actions/cache@v1
- uses: actions/cache@v3
env:
cache-name: cache-artifacts
with:
Expand All @@ -48,14 +47,16 @@ jobs:
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
file: lcov.info
docs:
name: Documentation
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v1
with:
version: '1'
Expand Down
34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Changelog

## [v1.3.0] - 2024-02-25

### Added

- large type

- roundhand script

## Changed

- up to Documenter 1

### Removed

### Deprecated

###################################################################

## [v1.2.0] - 2021-12-30

### Added

- boxed letters

## Changed

### Removed

### Deprecated

###################################################################

4 changes: 2 additions & 2 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ makedocs(
prettyurls = get(ENV, "CI", nothing) == "true",
size_threshold=nothing,
collapselevel=1,
assets = [
]),
assets = ["assets/zalgo-docs.css"]
),
pages = Any[
"Introduction" => "index.md",
"Index" => "functionindex.md"
Expand Down
Binary file added docs/src/assets/largetype.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/assets/scripts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/assets/terminal1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
130 changes: 130 additions & 0 deletions docs/src/assets/zalgo-docs.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
/* change Bulma Dark styles */

/* disclaimer - I hate CSS */

:root {
--signage: hsl(193, 46%, 60%);
--verydark: hsl(237, 20%, 10%);
--quitedark: hsl(237, 20%, 13%);
--lessdark: hsl(237, 20%, 16%);
}

html.theme--documenter-dark body {
background-color: var(--verydark);
color: #eff;
font-size: 1.1em;
font-weight: 400;
line-height: 1.5rem;
}

html.theme--documenter-dark a {
color: var(--signage);
}

html.theme--documenter-dark p > a:after {
padding-left:0.2rem;
font-family: "JuliaMono";
content: "⮻";
color: var(--signage);
background-color: inherit;
font-size: 120%;
}

html.theme--documenter-light p > a:after {
padding-left:0.2rem;
font-family: "JuliaMono";
content: "⮻";
background-color: inherit;
font-size: 120%;
}

html.theme--documenter-dark .has-text-left,
html.theme--documenter-dark body,
html.theme--documenter-dark #documenter .docs-sidebar,
html.theme--documenter-dark .documenter-example-output,
html.theme--documenter-dark #documenter .docs-sidebar ul.docs-menu .tocitem,
html.theme--documenter-dark #documenter .docs-sidebar ul.docs-menu .tocitem:hover,
html.theme--documenter-dark #documenter .docs-sidebar ul.docs-menu li.is-active .tocitem,
html.theme--documenter-dark #documenter .docs-sidebar ul.docs-menu li.is-active .tocitem:hover,
html.theme--documenter-dark #documenter .docs-main header.docs-navbar {
background-color: var(--verydark);
border: 0.5px solid hsla(237, 20%, 10%, 0.3) !important;
}

html.theme--documenter-dark .modal-card-body ,
html.theme--documenter-dark .modal-card-head ,
html.theme--documenter-dark .modal-card-foot ,
html.theme--documenter-dark #documenter .docs-sidebar ul.docs-menu ,
html.theme--documenter-dark #documenter .docs-sidebar ul.docs-menu li.is-active {
background-color: var(--verydark);
}

html.theme--documenter-dark .docstring ,
html.theme--documenter-dark .docstring>header {
background-color: var(--lessdark);
}

html.theme--documenter-dark .content pre,
html.theme--documenter-dark pre {
background-color: var(--lessdark);
border: 0.5px solid hsla(237, 20%, 10%, 0.3) !important;
}

html.theme--documenter-dark a {
color: var(--signage);
}

html.theme--documenter-dark .modal-card-head {
border: none;
}


.schemename {
font-family: "JuliaMono";
}

.swatch {

}

.category {
font-family: "JuliaMono";
font-size: 0.8em;
}

html.theme--documenter-dark p > code {
color: #eff !important;
}


html.theme--documenter-dark li > code {
color: #eff !important;
}


html.theme--documenter-dark a > code {
color: #eff !important;
}

html.theme--documenter-dark p > a {
color: #eff !important;
}

html.theme--documenter-dark .select select:focus,
html.theme--documenter-dark .textarea:focus,
html.theme--documenter-dark .input:focus,
html.theme--documenter-dark #documenter .docs-sidebar form.docs-search>input:focus,
html.theme--documenter-dark .select select.is-focused,
html.theme--documenter-dark .is-focused.textarea,
html.theme--documenter-dark .is-focused.input,
html.theme--documenter-dark #documenter .docs-sidebar form.docs-search>input.is-focused,
html.theme--documenter-dark .select select:active,
html.theme--documenter-dark .textarea:active,
html.theme--documenter-dark .input:active,
html.theme--documenter-dark #documenter .docs-sidebar form.docs-search>input:active,
html.theme--documenter-dark .select select.is-active,
html.theme--documenter-dark .is-active.textarea,
html.theme--documenter-dark .is-active.input,
html.theme--documenter-dark #documenter .docs-sidebar form.docs-search>input.is-active {
border-color: var(--signage);
}
69 changes: 60 additions & 9 deletions docs/src/index.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Zalgo

## z͍͌︡͢aͯͥͫ̂l̥̓g︡͛̽̑͢o̰͛̉︠
## Z̝̫͈̝ͩ͒̔͐̑̆̔︠̈a̜̙̜̯͇̳̱ͯͫͦ͑ͦ͘͟l͙͙̻̱͌ͮ̐́ͮͯ͟͢g͚̋̈̎͋̎̒̐ͮͯͦò̻̉\n

Zalgo text is digital text that has been modified by the addition of combining characters, Unicode symbols more usually employed to position diacritics above and below glyphs.
Zalgo text is digital text that has been modified by the addition of combining characters, the Unicode symbols more usually employed to position diacritics above and below glyphs.

"Zalgo" was named for a 2004 Internet meme that ascribed it to the influence of an eldritch deity. There's no official connection with H. P. Lovecraft's Cthulhu.
Zalgo was named for a 2004 Internet meme that ascribed it to the influence of an eldritch deity. Theres no official connection with H. P. Lovecrafts Cthulhu.

Use the `zalgo` function to add diacritics to a string. The options let you control how many diacritics are used. For maximum degeneracy, set `maxmarks` to a large number.

Expand All @@ -15,14 +15,65 @@ zalgo("Julia is cool", maxmarks=100)
```

Results vary considerably from font to font.

## Utilities

Because this package is useless - and occasionally bad, because it can cause some applicatipns to misbehave (it can crash Atom, for example) - it also provides some conversions to justify its existence.
!!! note

These utility functions use glyphs from the current font. Not many fonts contain all the necessary glyphs!

Because this package is useless — and occasionally bad, because it can cause some applications to misbehave — it also provides some utility functions to justify its existence.

The following functions convert the input string to equivalent characters that are to be found in the eldritch lexicon of the Unicode realm, where arcane glyphs and cryptic symbols abound.

```julia
blackboard("Hello World") # double-struck or 'blackboard' style
boldfraktur("Hello World") # bold Fraktur (black letter)
bolditalic("Hello World") # bold italic
bolditalicsans("Hello World") # bold italic sans-serif
boldroman("Hello World") # bold roman
boldsans("Hello World") # bold sans-serif
boldscript("Hello World") # bold script-style
fraktur("Hello World") # Fraktur (black letter)
large_type("Hello World") # Large Type (9 segments per glyph)
italic("Hello World") # italic
italicsans("Hello World") # italic sans-serif
sans("Hello World") # sans-serif
script("Hello World") # script
teletype("Hello World") # monospaced 'teletype'
upsidedown("Hello World") # might look like it's flipped upside down
circled("HELLO WORLD") # letters in circles
boxed("hello world") # letters in boxes
segmented("0123456789") # digits converted to 7-segment 'LED"-type display
```

![terminal example](assets/terminal1.png)

You can see what's going on using:

```julia-repl
julia-1.10> collect(blackboard("Hello World"))
11-element Vector{Char}:
'ℍ': Unicode U+210D (category Lu: Letter, uppercase)
'𝕖': Unicode U+1D556 (category Ll: Letter, lowercase)
'𝕝': Unicode U+1D55D (category Ll: Letter, lowercase)
'𝕝': Unicode U+1D55D (category Ll: Letter, lowercase)
'𝕠': Unicode U+1D560 (category Ll: Letter, lowercase)
' ': ASCII/Unicode U+0020 (category Zs: Separator, space)
'𝕎': Unicode U+1D54E (category Lu: Letter, uppercase)
'𝕠': Unicode U+1D560 (category Ll: Letter, lowercase)
'𝕣': Unicode U+1D563 (category Ll: Letter, lowercase)
'𝕝': Unicode U+1D55D (category Ll: Letter, lowercase)
'𝕕': Unicode U+1D555 (category Ll: Letter, lowercase)
```

### "Large Type"

Unicode 16 defines a set of glyphs that can be combined in a 3 × 3 grid to build larger letters.

![large type](assets/largetype.png)

The following functions convert the input string to equivalent characters that are to be found in the darkest recesses of the Unicode charts.
### Script styles

![example](assets/example.svg)
There are two mathematical script styles:

The current font should contain the various Unicode glyphs.
![script style](assets/scripts.png)
Loading

0 comments on commit 53d2a8d

Please sign in to comment.