Documentation ¶
Index ¶
Constants ¶
View Source
const ( //ひらがなとカタカナの文字コードの差 KANADIFF = 96 RUBY_PATTERN_HTML = "<ruby>{{.Parent}}<rp>(</rp><rt>{{.Ruby}}</rt><rp>)</rp></ruby>" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
Configuration
func NewConfiguration ¶
func NewConfiguration(pattern string) (*Configuration, error)
Configuration Constructor
type RubyWriter ¶
type RubyWriter struct {
// contains filtered or unexported fields
}
RubyWriter
func NewRubyWriter ¶
func NewRubyWriter(config *Configuration) (*RubyWriter, error)
RubyWriter Constructor
func (*RubyWriter) AddRuby ¶
func (rw *RubyWriter) AddRuby(str string) (string, error)
引数の文字列にルビを追加する
func (*RubyWriter) MakeRuby ¶
func (rw *RubyWriter) MakeRuby(string) (string, error)
TODO引数の文字列のルビを除去してルビを降りなおす
func (*RubyWriter) RemoveRuby ¶
func (rw *RubyWriter) RemoveRuby(string) (string, error)
TODO引数の文字列からルビを除去する
Click to show internal directories.
Click to hide internal directories.