mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2025-01-13 00:30:29 +08:00
Printing all icon name/code mappings
This commit is contained in:
parent
563a6f3cba
commit
95f9fec7a9
62
extractor/empty.svg
Normal file
62
extractor/empty.svg
Normal file
@ -0,0 +1,62 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="32"
|
||||
height="32"
|
||||
id="svg6044"
|
||||
version="1.1"
|
||||
inkscape:version="0.48.2 r9819"
|
||||
sodipodi:docname="trash.svg">
|
||||
<defs
|
||||
id="defs6046" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="11"
|
||||
inkscape:cx="14.519665"
|
||||
inkscape:cy="17.277308"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
inkscape:document-units="px"
|
||||
inkscape:grid-bbox="true"
|
||||
inkscape:window-width="751"
|
||||
inkscape:window-height="627"
|
||||
inkscape:window-x="1616"
|
||||
inkscape:window-y="258"
|
||||
inkscape:window-maximized="0" />
|
||||
<metadata
|
||||
id="metadata6049">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
id="layer1"
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
transform="translate(0,-31.999983)">
|
||||
<path
|
||||
style="fill:#000000;stroke:#000000;stroke-width:0.03897692000000000px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;fill-opacity:1"
|
||||
d="###INSERTGLYPH###"
|
||||
id="path6054"
|
||||
inkscape:connector-curvature="0" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 1.8 KiB |
18
extractor/extract.rb
Normal file
18
extractor/extract.rb
Normal file
@ -0,0 +1,18 @@
|
||||
icons = {}
|
||||
|
||||
sass_file = File.open('../sass/font-awesome.sass')
|
||||
lines = sass_file.readlines
|
||||
|
||||
index = 0
|
||||
while(index < lines.length)
|
||||
line = lines[index]
|
||||
if line.start_with? '.icon'
|
||||
colon_index = line.index ':'
|
||||
icon_name = line[1 .. colon_index - 1]
|
||||
index += 1
|
||||
line = lines[index]
|
||||
icon_code = line[13 .. 16]
|
||||
puts "#{icon_name}: #{icon_code}"
|
||||
end
|
||||
index += 1
|
||||
end
|
Loading…
Reference in New Issue
Block a user