Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cl-l10n.unix-locale-files
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cl-l10n
cl-l10n.unix-locale-files
Commits
87afde2a
Commit
87afde2a
authored
17 years ago
by
Attila Lendvai
Browse files
Options
Downloads
Patches
Plain Diff
Added hungarian language helper: jelzo kepzo rag szamokhoz
darcs-hash:f712345205c21dbb6f276bd37472056772b5f5bb
parent
f96c1b44
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
languages/hungarian.lisp
+30
-0
30 additions, 0 deletions
languages/hungarian.lisp
with
30 additions
and
0 deletions
languages/hungarian.lisp
+
30
−
0
View file @
87afde2a
...
...
@@ -71,3 +71,33 @@
(
t
(
emit
word
"ek"
)))
(
emit
word
"ok"
))))
(
emit
word
"-k"
)))))
#+
sbcl
(
progn
(
defun
jelz
ő
-k
é
pz
ő
-rag-eg
é
sz-sz
á
mokhoz
(
number
)
(
declare
(
optimize
(
speed
3
)))
(
declare
(
type
integer
number
))
(
setf
number
(
abs
number
))
(
let
((
number-of-leading-zeros
(
if
(
zerop
number
)
0
(
iter
(
for
(
values
i
remainder
)
:first
(
floor
number
10
)
:then
(
floor
i
10
))
(
while
(
zerop
remainder
))
(
counting
t
)))))
(
cond
((
zerop
number-of-leading-zeros
)
;; 0-9
(
aref
#.
(
coerce
'
(
"ás"
"es"
"es"
"as"
"es"
"ös"
"os"
"es"
"as"
"es"
)
'
(
simple-vector
10
))
(
mod
number
10
)))
((
=
1
number-of-leading-zeros
)
;; 10-90
(
aref
#.
(
coerce
'
(
nil
"es"
"as"
"as"
"es"
"es"
"as"
"es"
"as"
"es"
)
'
(
simple-vector
10
))
(
/
(
mod
number
100
)
10
)))
((
=
2
number-of-leading-zeros
)
;; 100
"as"
)
(
t
;; 1000-10000-100000...
(
aref
#.
(
coerce
'
(
nil
"es"
"ós"
"os"
"ós"
"os"
)
'
(
simple-vector
6
))
(
floor
number-of-leading-zeros
3
))))))
(
export
'jelz
ő
-k
é
pz
ő
-rag-eg
é
sz-sz
á
mokhoz
))
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment