jekyll_paperwiki_ipa 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 0aa46c2628fc25c4074f4094f5e848266e639393e5d82d06c4ea1d41f80095a7
4
+ data.tar.gz: eafb51ac4a4016ea835c2b19e666960cac510208bb4919d2ef6414d8bb95acf4
5
+ SHA512:
6
+ metadata.gz: 7c5e92a82859122c26c35309b29d89740a26c4c88756d55c66da098b14c8c79251377eba3a39e6c994cb2842b5bbf18328792a6230c9a0711d2db479f40df03e
7
+ data.tar.gz: 43c253f3efbf17968dacfe0c14ef1f02b6a3283b0790d9f89115ce356b64257eb26bcdb0ec37fa02fa029b1e49b7f017513fd98b41e2fd522862a8be95ac462a
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in jekyll_paperwiki_ipa.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2023 pomeloshark
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # JekyllPaperwikiIpa
2
+
3
+ ## Installation
4
+
5
+ Install the gem and add to the application's Gemfile by executing:
6
+
7
+ $ bundle add jekyll_paperwiki_ipa
8
+
9
+ If bundler is not being used to manage dependencies, install the gem by executing:
10
+
11
+ $ gem install jekyll_paperwiki_ipa
12
+
13
+ ## Usage
14
+
15
+ TODO: Write usage instructions here
16
+
17
+ ## Development
18
+
19
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
20
+
21
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
22
+
23
+ ## Contributing
24
+
25
+ Bug reports and pull requests are welcome on GitHub at https://github.com/pomeloshark/jekyll_paperwiki_ipa.
26
+
27
+ ## License
28
+
29
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ task default: %i[]
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module JekyllPaperwikiIpa
4
+ VERSION = "0.1.2"
5
+ end
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "jekyll_paperwiki_ipa/version"
4
+
5
+ # usage: {% ipa /phonemic text/%}
6
+ # usage: {% ipa [phonetic text]%}
7
+
8
+ module Jekyll
9
+ module Tags
10
+ class RenderPhoneticTag < Liquid::Tag
11
+
12
+ # initialize is called when we encounter the {% ipa %} Liquid tag; 'ipa' is the tag name and anything immediately after it is passed in via the second argument
13
+ def initialize(tag_name, text, tokens)
14
+ super
15
+ @text = text
16
+ end
17
+
18
+ def render(context)
19
+ "<abbr class=\"gloss\" title=\"International Phonetic Alphabet\">IPA</abbr>: <span class=\"ipa\">#{@text}</span>"
20
+ end
21
+
22
+ end
23
+ end
24
+ end
25
+
26
+ # The register_tag method takes two arguments: the user-facing name of the tag [ipa], and the class that implements it [RenderPhoneticTag].
27
+ Liquid::Template.register_tag("ipa", Jekyll::Tags::RenderPhoneticTag)
@@ -0,0 +1,4 @@
1
+ module JekyllPaperwikiIpa
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,53 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jekyll_paperwiki_ipa
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.2
5
+ platform: ruby
6
+ authors:
7
+ - pomeloshark
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2023-09-10 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email:
15
+ - 121037935+pomeloshark@users.noreply.github.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - Gemfile
21
+ - LICENSE.txt
22
+ - README.md
23
+ - Rakefile
24
+ - lib/jekyll_paperwiki_ipa.rb
25
+ - lib/jekyll_paperwiki_ipa/version.rb
26
+ - sig/jekyll_paperwiki_ipa.rbs
27
+ homepage: https://github.com/pomeloshark/jekyll-theme-paperwiki
28
+ licenses:
29
+ - MIT
30
+ metadata:
31
+ homepage_uri: https://github.com/pomeloshark/jekyll-theme-paperwiki
32
+ source_code_uri: https://github.com/pomeloshark/jekyll-theme-paperwiki
33
+ post_install_message:
34
+ rdoc_options: []
35
+ require_paths:
36
+ - lib
37
+ required_ruby_version: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: 2.6.0
42
+ required_rubygems_version: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ requirements: []
48
+ rubygems_version: 3.2.15
49
+ signing_key:
50
+ specification_version: 4
51
+ summary: A Jekyll plugin to format IPA (International Phonetic Alphabet) text, meant
52
+ to be used with the PaperWiki theme.
53
+ test_files: []