sanscript 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4e9133bd05cf7deb7c03cec7e4c9d46bac3eabaf
4
- data.tar.gz: e36b9dfe888ee1070d674d72a766130527ce603b
3
+ metadata.gz: 9faf67ffc560128328faa6ade8e07f2cde41a1a7
4
+ data.tar.gz: 23a0366c64070cda87fe0063e064e49325cc732a
5
5
  SHA512:
6
- metadata.gz: 651f1f92402d0b8507ffeda3df3d93ca9c16316f37f0903cb4034efda2a1e5d92df9c9f40810e34f43466de84e15c22d771f73404248811846b6249f5eefa4ba
7
- data.tar.gz: c79cc7021d15d791663faf6d3895bea4e80981c5f6061e780d4d38e057df3f6b1e89ff4eab5fcf8298a889f15d2c9289cf49074a7206fbd2ecb4c75444a32c7b
6
+ metadata.gz: 2137e83f2ee4028214336d2d5e04699cdf6eed7425990367a19822b0a26452a92c64ce2796ef5c74f296223df1b56fc25e46b3e8fcd51c496c85e19ff7bd2f3f
7
+ data.tar.gz: 11672ae4c5ecf28144921033b7883a3a470e87bccc8aaa8df4abb36928cfa39b47011aa0b17240809006241a940b3ccb48f04a2080e912b5019ce96d5794fe7a
@@ -51,6 +51,8 @@ module Sanscript
51
51
  module_function
52
52
 
53
53
  def detect_script(text)
54
+ text = text.to_str.gsub(/(?<!\\)##.*?(?<!\\)##/, "\\1")
55
+
54
56
  # Brahmic schemes are all within a specific range of code points.
55
57
  if RE_BRAHMIC_RANGE === text
56
58
  RE_BRAHMIC_SCRIPTS.each do |script, regex|
@@ -122,6 +122,9 @@ module Sanscript
122
122
  add_roman_scheme(name, @schemes[name])
123
123
  end
124
124
 
125
+ # Add Kyoto-Harvard copy (alternate name of Harvard-Kyoto scheme)/
126
+ add_roman_scheme(:kh, @schemes[:hk])
127
+
125
128
  # ITRANS variant, which supports Dravidian short 'e' and 'o'.
126
129
  itrans_dravidian = @schemes[:itrans].deep_dup
127
130
  itrans_dravidian[:vowels] = %w[a A i I u U Ri RRI LLi LLi e E ai o O au]
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Sanscript
3
- VERSION = "0.2.0"
3
+ VERSION = "0.3.0"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sanscript
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Bellefleur
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-14 00:00:00.000000000 Z
11
+ date: 2016-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler