Sha256: 6a1e1e2315653d59ed8e175e69cb847c641b55b1ef4aa3c24f45653173ec7b83

Contents?: true

Size: 771 Bytes

Versions: 64

Compression:

Stored size: 771 Bytes

Contents

=begin
  break.rb - Ruby/Pango sample script.

  Copyright (c) 2005 Ruby-GNOME2 Project
  This program is licenced under the same licence as Ruby-GNOME2.

  $Id: break.rb,v 1.1 2005/09/17 17:09:12 mutoh Exp $
=end

require 'pango'

attr = Pango.break("Hello Worldです\n2nd line", Pango::Analysis.new)

p attr.length
attr.each do |v|
  print "line_break:#{v.line_break?}"
  print ", mandatory_break:#{v.mandatory_break?}"
  print ", char_break:#{v.char_break?}"
  print ", white:#{v.white?}"
  print ", cursor_position:#{v.cursor_position?}"
  print ", word_start:#{v.word_start?}"
  print ", word_end:#{v.word_end?}"
  print ", sentence_boundary:#{v.sentence_boundary?}"
  print ", sentence_start:#{v.sentence_start?}"
  print ", sentence_end:#{v.sentence_end?}\n"
end

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
pango-2.0.1-x86-mingw32 sample/break.rb
pango-2.0.1 sample/break.rb
pango-2.0.0-x86-mingw32 sample/break.rb
pango-2.0.0 sample/break.rb
pango-1.2.6-x86-mingw32 sample/break.rb
pango-1.2.6 sample/break.rb
pango-1.2.5-x86-mingw32 sample/break.rb
pango-1.2.5 sample/break.rb
pango-1.2.4-x86-mingw32 sample/break.rb
pango-1.2.4 sample/break.rb
pango-1.2.3 sample/break.rb
pango-1.2.3-x86-mingw32 sample/break.rb
pango-1.2.2-x86-mingw32 sample/break.rb
pango-1.2.2 sample/break.rb
pango-1.2.1-x86-mingw32 sample/break.rb
pango-1.2.1 sample/break.rb
pango-1.2.0-x86-mingw32 sample/break.rb
pango-1.2.0 sample/break.rb
pango-1.1.9-x86-mingw32 sample/break.rb
pango-1.1.9 sample/break.rb