Merge branch 'master' of git://factorcode.org/git/factor
commit
68f04aa667
|
@ -2,7 +2,7 @@ IN: colors.constants
|
||||||
USING: help.markup help.syntax strings colors ;
|
USING: help.markup help.syntax strings colors ;
|
||||||
|
|
||||||
HELP: named-color
|
HELP: named-color
|
||||||
{ $values { "string" string } { "color" color } }
|
{ $values { "name" string } { "color" color } }
|
||||||
{ $description "Outputs a named color from the " { $snippet "rgb.txt" } " database." }
|
{ $description "Outputs a named color from the " { $snippet "rgb.txt" } " database." }
|
||||||
{ $notes "In most cases, " { $link POSTPONE: COLOR: } " should be used instead." }
|
{ $notes "In most cases, " { $link POSTPONE: COLOR: } " should be used instead." }
|
||||||
{ $errors "Throws an error if the color is not listed in " { $snippet "rgb.txt" } "." } ;
|
{ $errors "Throws an error if the color is not listed in " { $snippet "rgb.txt" } "." } ;
|
||||||
|
|
|
@ -27,7 +27,7 @@ PRIVATE>
|
||||||
|
|
||||||
ERROR: no-such-color name ;
|
ERROR: no-such-color name ;
|
||||||
|
|
||||||
: named-color ( name -- rgb )
|
: named-color ( name -- color )
|
||||||
dup rgb.txt at [ ] [ no-such-color ] ?if ;
|
dup rgb.txt at [ ] [ no-such-color ] ?if ;
|
||||||
|
|
||||||
: COLOR: scan named-color parsed ; parsing
|
: COLOR: scan named-color parsed ; parsing
|
|
@ -0,0 +1,2 @@
|
||||||
|
unportable
|
||||||
|
bindings
|
|
@ -13,8 +13,8 @@ HELP: PROTOCOL:
|
||||||
{ define-protocol POSTPONE: PROTOCOL: } related-words
|
{ define-protocol POSTPONE: PROTOCOL: } related-words
|
||||||
|
|
||||||
HELP: define-consult
|
HELP: define-consult
|
||||||
{ $values { "class" "a class" } { "group" "a protocol, generic word or tuple class" } { "quot" "a quotation" } }
|
{ $values { "consultation" consultation } }
|
||||||
{ $description "Defines a class to consult, using the given quotation, on the generic words contained in the group." }
|
{ $description "Defines a class to consult, using the quotation, on the generic words contained in the group." }
|
||||||
{ $notes "Usually, " { $link POSTPONE: CONSULT: } " should be used instead. This is only for runtime use." } ;
|
{ $notes "Usually, " { $link POSTPONE: CONSULT: } " should be used instead. This is only for runtime use." } ;
|
||||||
|
|
||||||
HELP: CONSULT:
|
HELP: CONSULT:
|
||||||
|
|
|
@ -3,8 +3,11 @@
|
||||||
USING: help.syntax help.markup ;
|
USING: help.syntax help.markup ;
|
||||||
IN: io.encodings.euc-kr
|
IN: io.encodings.euc-kr
|
||||||
|
|
||||||
ABOUT: euc-kr
|
|
||||||
|
|
||||||
HELP: euc-kr
|
HELP: euc-kr
|
||||||
{ $class-description "This encoding class implements Microsoft's code page #949 encoding, also called Unified Hangul Code or ks_c_5601-1987, UHC. CP949 is extended version of EUC-KR and downward-compatibility to EUC-KR, in practice." }
|
{ $class-description "This encoding class implements Microsoft's CP949 encoding, also called Unified Hangul Code or ks_c_5601-1987, UHC. CP949 is extended version of EUC-KR and downward-compatible with EUC-KR in practice." }
|
||||||
{ $see-also "encodings-introduction" } ;
|
{ $see-also "encodings-introduction" } ;
|
||||||
|
|
||||||
|
ARTICLE: "io.encodings.euc-kr" "EUC-KR encoding"
|
||||||
|
{ $subsection euc-kr } ;
|
||||||
|
|
||||||
|
ABOUT: "io.encodings.euc-kr"
|
|
@ -3,7 +3,10 @@
|
||||||
USING: help.syntax help.markup ;
|
USING: help.syntax help.markup ;
|
||||||
IN: io.encodings.johab
|
IN: io.encodings.johab
|
||||||
|
|
||||||
ABOUT: johab
|
|
||||||
|
|
||||||
HELP: johab
|
HELP: johab
|
||||||
{ $class-description "Korean Johab encoding (KSC5601-1992). This encoding is not commonly used anymore." } ;
|
{ $class-description "Korean Johab encoding (KSC5601-1992). This encoding is not commonly used anymore." } ;
|
||||||
|
|
||||||
|
ARTICLE: "io.encodings.johab" "Korean Johab encoding"
|
||||||
|
{ $subsection johab } ;
|
||||||
|
|
||||||
|
ABOUT: "io.encodings.johab"
|
|
@ -137,7 +137,7 @@ $nl
|
||||||
{ $subsection "models-delay" } ;
|
{ $subsection "models-delay" } ;
|
||||||
|
|
||||||
ARTICLE: "models-impl" "Implementing models"
|
ARTICLE: "models-impl" "Implementing models"
|
||||||
"New types of models can be defined, for example see " { $vocab-link "models.filter" } "."
|
"New types of models can be defined, for example see " { $vocab-link "models.arrow" } "."
|
||||||
$nl
|
$nl
|
||||||
"Models can execute hooks when activated:"
|
"Models can execute hooks when activated:"
|
||||||
{ $subsection model-activated }
|
{ $subsection model-activated }
|
||||||
|
|
|
@ -306,12 +306,18 @@ M: macosx modifiers>string
|
||||||
M: object modifiers>string
|
M: object modifiers>string
|
||||||
[ name>> ] map "" join ;
|
[ name>> ] map "" join ;
|
||||||
|
|
||||||
|
HOOK: keysym>string os ( keysym -- string )
|
||||||
|
|
||||||
|
M: macosx keysym>string >upper ;
|
||||||
|
|
||||||
|
M: object keysym>string ;
|
||||||
|
|
||||||
M: key-down gesture>string
|
M: key-down gesture>string
|
||||||
[ mods>> ] [ sym>> ] bi
|
[ mods>> ] [ sym>> ] bi
|
||||||
{
|
{
|
||||||
{ [ dup { [ length 1 = ] [ first LETTER? ] } 1&& ] [ [ S+ prefix ] dip ] }
|
{ [ dup { [ length 1 = ] [ first LETTER? ] } 1&& ] [ [ S+ prefix ] dip ] }
|
||||||
{ [ dup " " = ] [ drop "SPACE" ] }
|
{ [ dup " " = ] [ drop "SPACE" ] }
|
||||||
[ >upper ]
|
[ keysym>string ]
|
||||||
} cond
|
} cond
|
||||||
[ modifiers>string ] dip append ;
|
[ modifiers>string ] dip append ;
|
||||||
|
|
||||||
|
|
|
@ -15,11 +15,11 @@ HELP: com-release
|
||||||
{ $description "A small wrapper around " { $link IUnknown::Release } ". Decrements the reference count on " { $snippet "interface" } ", releasing the underlying object if the reference count has reached zero." } ;
|
{ $description "A small wrapper around " { $link IUnknown::Release } ". Decrements the reference count on " { $snippet "interface" } ", releasing the underlying object if the reference count has reached zero." } ;
|
||||||
|
|
||||||
HELP: &com-release
|
HELP: &com-release
|
||||||
{ $values { "interface" "Pointer to a COM interface implementing " { $snippet "IUnknown" } } }
|
{ $values { "alien" "pointer to a COM interface implementing " { $snippet "IUnknown" } } }
|
||||||
{ $description "Marks the given COM interface for unconditional release via " { $link com-release } " at the end of the enclosing " { $link with-destructors } " scope." } ;
|
{ $description "Marks the given COM interface for unconditional release via " { $link com-release } " at the end of the enclosing " { $link with-destructors } " scope." } ;
|
||||||
|
|
||||||
HELP: |com-release
|
HELP: |com-release
|
||||||
{ $values { "interface" "Pointer to a COM interface implementing " { $snippet "IUnknown" } } }
|
{ $values { "alien" "pointer to a COM interface implementing " { $snippet "IUnknown" } } }
|
||||||
{ $description "Marks the given COM interface for release via " { $link com-release } " in the event of an error at the end of the enclosing " { $link with-destructors } " scope." } ;
|
{ $description "Marks the given COM interface for release via " { $link com-release } " in the event of an error at the end of the enclosing " { $link with-destructors } " scope." } ;
|
||||||
|
|
||||||
{ com-release &com-release |com-release } related-words
|
{ com-release &com-release |com-release } related-words
|
||||||
|
|
Loading…
Reference in New Issue