5 // Copyright (c) 2005 A. Karl Keller (http://karlk.net)
7 // This code is open-source, free software, made available without warranty under
8 // the terms of the GNU General Public License, either version 2 or later (see
9 // http://www.gnu.org/licenses/gpl.html or included copy); as such, it may be
10 // redistributed and/or modified in accordance with that document.
15 #import <Cocoa/Cocoa.h>
18 @interface RTKRevision
: NSObject
22 NSString
* backTranslation
;
28 // Lossless forwards/backwards compatibility
29 NSDictionary
* dictionary
;
32 - (id
)initWithDictionary
:(NSDictionary
*)dict
;
33 + (RTKRevision
*)revisionWithDictionary
:(NSDictionary
*)dict
;
34 - (id
)initWithString
:(NSString
*)string
;
35 + (RTKRevision
*)revisionWithString
:string
;
36 - (id
)initWithSFMString
:(NSString
*)string
;
37 + (RTKRevision
*)revisionWithSFMString
:(NSString
*)string
;
38 - (void)appendLine
:(NSString
*)line
;
43 - (NSString
*)backTranslation
;
45 - (NSString
*)checking
;
49 - (void)setRoman
:(NSString
*)string
;
50 - (void)setScript
:(NSString
*)string
;
51 - (void)setBackTranslation
:(NSString
*)string
;
52 - (void)setNotes
:(NSString
*)string
;
53 - (void)setChecking
:(NSString
*)string
;
54 - (void)setLocked
:(bool)state
;
56 - (void)setDictionary
:(NSDictionary
*)theDictionary
;
57 - (NSDictionary
*)dictionary
;
59 - (NSMutableString
*)textSafeStringForString
:(NSString
*)string
;
60 - (NSMutableString
*)stringFromTextSafeString
:(NSString
*)textSafeString
;
63 - (BOOL
)matchesString
:(NSString
*)string
;
65 - (NSMutableAttributedString
*)mutableAttributedString
:(BOOL
)romanString
;
66 - (NSString
*)stringWithVerseNumber
:(NSString
*)verseNumber
;