Sha256: fb2d463a8fc3f1fc61b69998336d2110c30629bade633f66c8db983251c97be5
Contents?: true
Size: 614 Bytes
Versions: 6
Compression:
Stored size: 614 Bytes
Contents
# # tDiary language setup: Japanese(ja) # # Copyright (C) 2001-2011, TADA Tadashi <t@tdtds.jp> # You can redistribute it and/or modify it under GPL2. or any later version # def html_lang 'ja-JP' end def encoding 'UTF-8' end def encoding_old 'EUC-JP' end def migrate_to_utf8( str ) to_native( str, encoding_old ) end def shorten( str, len = 120 ) matched = str.gsub( /\n/, ' ' ).scan( /^.{0,#{len - 2}}/u )[0] if $'.nil? || $'.empty? matched else matched + '..' end end def comment_length 60 end # Local Variables: # mode: ruby # indent-tabs-mode: t # tab-width: 3 # ruby-indent-level: 3 # End:
Version data entries
6 entries across 6 versions & 1 rubygems