echoes 0.7.0 → 0.7.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: f5fa8600adc9387da347fcf6388529566e2f991c7d80718d031e350d8331ad38
4
- data.tar.gz: 8ceb984a585917dfb84333edc142a47e7b07eb85e41cc0239a4624c4cf6f4a41
3
+ metadata.gz: 7a8be3caa5aa66d44068fc6f0f3d9b9e0e8ada790feb546a8b93e1fa11285c8e
4
+ data.tar.gz: 88c4d5b99a0c214a3825f5f7cdaeca2a9c94be873e306ebea307d7dca0e959ce
5
5
  SHA512:
6
- metadata.gz: 9fcb90521884937e71edd306efc686c8472616e6de9a553d288ecc8e8db53cab7137bd0a0f95eeec48b65dedfa1d3d701330f0fc41635645498f91365f7ae8d0
7
- data.tar.gz: 84ee319742e8191a016ff164c3048b2901874c1508580ec506674db4bd6dafe291680de6d9afc29f952b84392a01a1bc28d887902711b863cd6c1a069089936f
6
+ metadata.gz: a3556fc2682146b14af577037e25a922013d953acfcd07ccafd9f4fb4731ad1d0b1c822e4eb1cb6bccb0181565f087c21368f96ee97c86bb1bb4845b3b59c1cb
7
+ data.tar.gz: a39762c03920861a60deef354b7322a58016f37b28b5e97643a206494c53fc29cf91d8e8b4a5ec68b5651b241a4e0cf6500048c633bd33d54430e9426a99be0c
data/lib/echoes/parser.rb CHANGED
@@ -506,7 +506,13 @@ module Echoes
506
506
  next unless v
507
507
  case k
508
508
  when 's' then params[:scale] = v.to_i.clamp(1, 7)
509
- when 'w' then params[:width] = v.to_i.clamp(0, 7)
509
+ # `w=` was capped at 7 to follow the Kitty multicell spec, but
510
+ # the explicit-width path is the only practical way to do
511
+ # server-side slide-level centering (block spans the row, halign=2
512
+ # centers text within it). Raise the cap so a 30-wide title block
513
+ # at scale=5 (block_w = 150 cells) is representable; sane decks
514
+ # don't approach this. The lower bound (non-negative) is kept.
515
+ when 'w' then params[:width] = [v.to_i, 0].max
510
516
  when 'n' then params[:frac_n] = v.to_i.clamp(0, 15)
511
517
  when 'd' then params[:frac_d] = v.to_i.clamp(0, 15)
512
518
  when 'v' then params[:valign] = v.to_i.clamp(0, 3)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Echoes
4
- VERSION = "0.7.0"
4
+ VERSION = "0.7.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: echoes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akira Matsuda