File:Workweeks-map.svg
Wikimedia Commons থেকে
পরিভ্রমণে চলুন
অনুসন্ধানে চলুন
এই SVG ফাইলের জন্য এই PNG প্রাকদর্শনের আকার: ৮০০ × ৪০৬ পিক্সেল। অন্যান্য আকারসমূহ: ৩২০ × ১৬২ পিক্সেল | ৬৪০ × ৩২৫ পিক্সেল | ১,০২৪ × ৫২০ পিক্সেল | ১,২৮০ × ৬৫০ পিক্সেল | ২,৫৬০ × ১,৩০০ পিক্সেল | ২,৭৫৪ × ১,৩৯৮ পিক্সেল।
মূল ফাইল (এসভিজি ফাইল, সাধারণত ২,৭৫৪ × ১,৩৯৮ পিক্সেল, ফাইলের আকার: ১.০৬ মেগাবাইট)
ফাইলের তথ্য
কাঠামোবদ্ধ উপাত্ত
ক্যাপশনসমূহ
সারাংশ[সম্পাদনা]
বিবরণWorkweeks-map.svg |
English: Countries of the world by their work-week.
|
তারিখ | |
উৎস | নিজের কাজ |
লেখক | MartinThoma |
Script to create the map:
#!/usr/bin/env python
# 3rd party modules
from lxml import etree
import mpu.pd
def main(filename="weekend.svg"):
mon_fri = ['Dominican Republic', 'Lebanon', 'Serbia', 'Albania', 'Angola',
'Argentina', 'Armenia', 'Azerbaijan', 'Austria', 'Australia',
'Benin',
'Belarus', 'Belgium', 'Brazil', 'Burundi', 'Bulgaria', 'Canada',
'Cambodia', 'Cameroon', 'Chile', 'China', 'Croatia',
'Costa Rica', 'Czech Republic', 'Denmark', 'Ethiopia',
'Estonia', 'Finland', 'France', 'Gabon',
'Gambia', 'Germany', 'Ghana', 'Greece', 'Hungary', 'Indonesia',
'Ireland',
'Italy', 'Côte d\'Ivoire', 'Japan', 'Kazakhstan', 'Kenya',
'Lao People\'s Democratic Republic', 'Latvia', 'Lesotho',
'Lithuania', 'Madagascar',
'Malawi', 'Mali', 'Malta', 'Mauritania', 'Mongolia', 'Morocco',
'Mozambique', 'Netherlands', 'New Zealand', 'Nigeria',
'Norway',
'Pakistan', 'Poland', 'Portugal', 'Romania', 'Russia', 'Rwanda',
'Senegal',
'Singapore', 'Slovakia', 'Spain', 'Sri Lanka',
'South Africa', 'South Korea', 'Suriname', 'Swaziland',
'Sweden', 'Switzerland',
'Seychelles', 'Taiwan', 'Tanzania', 'Togo', 'Thailand',
'Trinidad and Tobago', 'Tunisia', 'Turkey', 'Ukraine',
'United Kingdom', 'United States',
'Vietnam', 'Congo (Democratic Republic of the)', 'Zambia',
'Zimbabwe']
mon_sat = ['Equatorial Guinea', 'Hong Kong', 'Mexico', 'Philippines',
'Uganda', 'India', 'Colombia']
sun_thu = ['Afghanistan', 'Algeria', 'Bahrain', 'Egypt', 'Iraq', 'Israel',
'Jordan', 'Kuwait', 'Libya', 'Maldives', 'Oman', 'Qatar',
'Saudi Arabia', 'Sudan', 'Syria', 'Yemen',
'United Arab Emirates', 'Bangladesh']
sat_thu = ['Djibouti', 'Palestine', 'Iran']
sun_fri = ['Nepal']
mon_thu_sat = ['Brunei Darussalam']
mixed = ['Malaysia']
countries = mpu.pd.countries
countries = countries.set_index('English short name (upper/lower case)')
country2dict = countries.to_dict('index')
legend = [(mon_fri, '#B8D8D8'),
(mon_sat, 'orange'),
(sun_thu, '#4F6367'),
(sat_thu, 'red'),
(sun_fri, 'tomato'),
(mon_thu_sat, '#ff00ff'),
(mixed, '#00ffff')]
colors = {}
for collection, color in legend:
for country in collection:
if country in country2dict:
code = country2dict[country]['Alpha-2 code'].lower()
colors[code] = color
else:
print('Could not find the Alpha-2 code for \'{}\' in mpu'
.format(country))
tree = read_svg(filename)
root = tree.getroot()
for country_id in colors.keys():
element = root.xpath('//*[@id="{}"]'.format(country_id))
if len(element) == 1:
element = element[0]
element.set("style", 'fill: {};'.format(colors[country_id]))
for el in element.getchildren():
el.set("style", 'fill: {};'.format(colors[country_id]))
else:
print("Wrong length for id={}".format(country_id))
write_svg(root)
def read_svg(filename):
"""
Read an SVG file.
Parameters
----------
filename : str
Returns
-------
tree : lxml.ElementTree
"""
with open(filename, 'r') as f:
tree = etree.parse(f)
return tree
def write_svg(root, filename='weekend-auto.svg'):
"""
Read an SVG file.
Parameters
----------
root : lxml.Element
filename : str
"""
etree.ElementTree(root).write(filename, pretty_print=True)
if __name__ == '__main__':
main()
লাইসেন্স প্রদান[সম্পাদনা]
আমি, এই কাজের স্বত্বাধিকারী, এতদ্দ্বারা আমি এই কাজকে নিম্ন বর্ণিত লাইসেন্সের আওতায় প্রকাশ করলাম:
এই ফাইলটি ক্রিয়েটিভ কমন্স সিসি০ ১.০ সার্বজনীন পাবলিক ডোমেইন উৎসর্গীকরণের আওতায় রয়েছে। | |
যেই ব্যক্তিটি এই কাজটির সাথে সংশ্লিষ্ট তিনি এই কাজটি পাবলিক ডোমেইনে মুক্ত করার মাধ্যমে তাঁর সকল স্বত্ত্ব বিশ্বের সকল কপিরাইট আইনের আওতায় ত্যাগ করেছেন। যার মধ্যে নেইবারিং অধিকার, ও আইনের মাধ্যমে এক্সটেন্টও অন্তর্গত। আপনি এই কাজটি কোন অনুমতি চাওয়া ছাড়াই মুক্তভাবে অনুলিপি, পরিবর্তন, বিতরণ করতে পারেন, এবং এমন কি কোনো বাণিজ্যিক কাজেও ব্যবহার করতে পারেন।
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse |
ফাইলের ইতিহাস
যেকোনো তারিখ/সময়ে ক্লিক করে দেখুন ফাইলটি তখন কী অবস্থায় ছিল।
তারিখ/সময় | সংক্ষেপচিত্র | মাত্রা | ব্যবহারকারী | মন্তব্য | |
---|---|---|---|---|---|
বর্তমান | ১২:১৪, ২৯ সেপ্টেম্বর ২০২৩ | ২,৭৫৪ × ১,৩৯৮ (১.০৬ মেগাবাইট) | Vyvagaba (আলোচনা | অবদান) | Changed the file to an svg file that is more easily editable, addressed some recent updates and missing data. | |
১২:১২, ২৯ সেপ্টেম্বর ২০২৩ | ২,৫৬০ × ১,৩১৪ (১.০৯ মেগাবাইট) | Vyvagaba (আলোচনা | অবদান) | Reverted to version as of 19:41, 4 September 2018 (UTC) | ||
১২:০৭, ২৯ সেপ্টেম্বর ২০২৩ | ২,৭৫৪ × ১,৩৯৮ (১.০৬ মেগাবাইট) | Vyvagaba (আলোচনা | অবদান) | Changed the file to an svg file that is more easily editable, addressed some recent updates and missing data. | ||
১৯:৪১, ৪ সেপ্টেম্বর ২০১৮ | ২,৫৬০ × ১,৩১৪ (১.০৯ মেগাবাইট) | MartinThoma (আলোচনা | অবদান) | User created page with UploadWizard |
আপনি এই ফাইলটি প্রতিস্থাপন করতে পারবেন না।
ফাইলের ব্যবহার
নিম্নলিখিত পাতাটি এই ফাইল ব্যবহার করে:
- File:Workweeks-map v2.svg (ফাইল পুনঃর্নিদেশ)
ফাইলের বৈশ্বিক ব্যবহার
নিচের অন্যান্য উইকিগুলো এই ফাইলটি ব্যবহার করে:
- ar.wikipedia.org-এ ব্যবহার
- bn.wikipedia.org-এ ব্যবহার
- en.wikipedia.org-এ ব্যবহার
- zh-yue.wikipedia.org-এ ব্যবহার
- zh.wikipedia.org-এ ব্যবহার
অধি-উপাত্ত
এই ফাইলে অতিরিক্ত কিছু তথ্য আছে। সম্ভবত যে ডিজিটাল ক্যামেরা বা স্ক্যানারের মাধ্যমে এটি তৈরি বা ডিজিটায়িত করা হয়েছিল, সেটি কর্তৃক তথ্যগুলি যুক্ত হয়েছে। যদি ফাইলটি তার আদি অবস্থা থেকে পরিবর্তিত হয়ে থাকে, কিছু কিছু বিবরণ পরিবর্তিত ফাইলটির জন্য প্রযোজ্য না-ও হতে পারে।
সংক্ষিপ্ত শিরোনাম | World Map |
---|---|
চওড়া | 2754 |
লম্বা | 1398 |