@@ -225,6 +225,11 @@ def replace_string_to_absolute(self, match):
225
225
new_path = json .dumps (new_path , ensure_ascii = False )
226
226
return '"%s": %s' % (key , new_path )
227
227
228
+ elif "@emojis" in path :
229
+ new_path = path .replace ("@emojis" , os .path .join (info .PATH , "emojis" , "color" , "svg" ))
230
+ new_path = json .dumps (new_path , ensure_ascii = False )
231
+ return '"%s": %s' % (key , new_path )
232
+
228
233
elif "@assets" in path :
229
234
new_path = path .replace ("@assets" , path_context ["new_project_assets" ])
230
235
new_path = json .dumps (new_path , ensure_ascii = False )
@@ -268,20 +273,28 @@ def replace_string_to_relative(self, match):
268
273
269
274
# Determine if @transitions path is found
270
275
elif os .path .join (info .PATH , "transitions" ) in folder_path :
271
- # Yes, this is an OpenShot transitions
276
+ # Yes, this is an OpenShot transition
272
277
folder_path , category_path = os .path .split (folder_path )
273
278
274
279
# Convert path to @transitions/ path
275
280
new_path = os .path .join ("@transitions" , category_path , file_path ).replace ("\\ " , "/" )
276
281
new_path = json .dumps (new_path , ensure_ascii = False )
277
282
return '"%s": %s' % (key , new_path )
278
283
284
+ # Determine if @emojis path is found
285
+ elif os .path .join (info .PATH , "emojis" ) in folder_path :
286
+ # Yes, this is an OpenShot emoji
287
+ # Convert path to @emojis/ path
288
+ new_path = os .path .join ("@emojis" , file_path ).replace ("\\ " , "/" )
289
+ new_path = json .dumps (new_path , ensure_ascii = False )
290
+ return '"%s": %s' % (key , new_path )
291
+
279
292
# Determine if @assets path is found
280
293
elif path_context ["new_project_assets" ] in folder_path :
281
294
# Yes, this is an OpenShot transitions
282
295
folder_path = folder_path .replace (path_context ["new_project_assets" ], "@assets" )
283
296
284
- # Convert path to @transitions / path
297
+ # Convert path to @assets / path
285
298
new_path = os .path .join (folder_path , file_path ).replace ("\\ " , "/" )
286
299
new_path = json .dumps (new_path , ensure_ascii = False )
287
300
return '"%s": %s' % (key , new_path )
0 commit comments