File:Polish letters frequencies.svg
Size of this PNG preview of this SVG file: 700 × 360 pixels. Other resolutions: 320 × 165 pixels | 640 × 329 pixels | 1,024 × 527 pixels | 1,280 × 658 pixels | 2,560 × 1,317 pixels.
Original file (SVG file, nominally 700 × 360 pixels, file size: 13 KB)
File information
Structured data
Captions
Summary
editDescriptionPolish letters frequencies.svg |
English: Polish single letters frequencies. Data: http://poradnia.pwn.pl/lista.php?id=7072
Polski: Częstość występowania polskich liter. Dane: http://poradnia.pwn.pl/lista.php?id=7072 |
Date | |
Source | Own work |
Author | Matma Rex |
Other versions | old .png version: File:Polish letters.png |
Created with Ruby script:
s=<<EOF
a 8.91% w 4.65% p 3.13% g 1.42% ć 0.40%
i 8.21% s 4.32% m 2.80% ę 1.11% f 0.30%
o 7.75% t 3.98% u 2.50% h 1.08% ń 0.20%
e 7.66% c 3.96% j 2.28% ą 0.99%
z 5.64% y 3.76% l 2.10% ó 0.85% ź 0.06%
n 5.52% k 3.51% ł 1.82% ż 0.83%
r 4.69% d 3.25% b 1.47% ś 0.66%
EOF
data=Hash[*s.strip.split(/\s+/)]
puts <<EOF
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="700" height="360" x="0" y="0">
EOF
9.downto(0) do |i|
puts "<line x1='0' y1='#{(9-i)*30+60}' x2='700' y2='#{(9-i)*30+60}' stroke='grey' stroke-width='1' />"
puts "<text x='30' y='#{(9-i)*30+55}' width='20' style='font-size:16px;text-anchor:middle;font-family:arial'>#{i}%</text>"
end
puts '<g transform="translate(60 -20)">'
'a ą b c ć d e ę f g h i j k l ł m n ń o ó p r s ś t u w y z ź ż'.split(' ').each_with_index do |a, i|
l=data[a]
x=20*i
height=l.sub('%','').to_f*100*0.3
puts "<rect x='#{x}' y='#{350-height}' width='20' height='#{height}' fill='lightgrey' stroke='black' stroke-width='1' />"
puts "<text x='#{x+10}' y='370' width='20' style='font-size:16px;text-anchor:middle;font-family:arial'>#{a}</text>"
puts "<text x='#{x}' y='#{350-height-45}' width='20' height='10' style='font-size:16px;font-family:arial' transform='rotate(90 #{x} #{350-height-45}) translate(-4 -4)'>#{l}</text>"
end
puts '</g>'
puts '</svg>'
Licensing
editI, the copyright holder of this work, hereby publish it under the following licenses:
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue |
This file is licensed under the Creative Commons Attribution-Share Alike Attribution-Share Alike 4.0 International, 3.0 Unported, 2.5 Generic, 2.0 Generic and 1.0 Generic license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
You may select the license of your choice.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 15:14, 8 September 2009 | 700 × 360 (13 KB) | Matma Rex (talk | contribs) | fixed 16px font size | |
15:01, 8 September 2009 | 700 × 360 (13 KB) | Matma Rex (talk | contribs) | {{Information |Description={{en|1=Polish single letters frequencies. Data: http://poradnia.pwn.pl/lista.php?id=7072}} {{pl|1=Częstość występowania polskich liter. Dane: http://poradnia.pwn.pl/lista.php?id=7072}} |Source=Praca własna osoby przesyłaj� |
You cannot overwrite this file.
File usage on Commons
The following page uses this file:
File usage on other wikis
The following other wikis use this file:
- Usage on fr.wikipedia.org
- Usage on pl.wikipedia.org